forked from jaywink/socialhome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
sudo: false
language: python
python:
- "3.4"
- "3.5"
- "3.6"
services:
- redis-server
- postgresql
install:
- pip install -U pip setuptools==30.4 pip-tools
- pip-sync dev-requirements.txt
- pip freeze
cache:
directories:
- $HOME/.cache/pip
- bower_components/
- node_modules/
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
# Install custom Node via nvm
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
- source ~/.nvm/nvm.sh && nvm install 7
- npm install
- node_modules/.bin/bower install
- node_modules/.bin/grunt build
- python manage.py print_settings
script:
- py.test --cov=./
- python manage.py migrate --noinput -v 0
- python manage.py collectstatic --noinput -v 0
- node_modules/.bin/grunt test
- npm run test
after_success:
- codecov
env:
- DATABASE_URL=postgres://[email protected]:5432/travis_ci_test DJANGO_SETTINGS_MODULE=config.settings.local DJANGO_ALLOWED_HOSTS=127.0.0.1 DJANGO_SECURE_SSL_REDIRECT=False SOCIALHOME_DOMAIN=127.0.0.1:8000 SOCIALHOME_HTTPS=False DJANGO_DEBUG=False DJANGO_DEBUG_TOOLBAR=False MOCHA_TESTS=True