forked from CodeForBuffalo/affordable_water
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (45 loc) · 1.25 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
sudo: required
language: python
python:
- "3.7"
node_js:
- "12"
addons:
chrome: stable
apt:
packages:
- rabbitmq-server
services:
- rabbitmq
before_install:
- pip install -U pip
install:
- pip install pipenv
- pipenv sync --dev
- npm install
- npm install -g gulp-cli
- wget https://chromedriver.storage.googleapis.com/78.0.3904.70/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- export CHROME_BIN=chromium-browser
- gulp
- python manage.py collectstatic --noinput
- python manage.py compress
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pipenv
- node_modules
- $HOME/.npm
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- celery multi start worker1 -A affordable_water --pidfile="$HOME/run/celery/%n.pid" --logfile="$HOME/log/celery/%n%I.log"
- coverage run manage.py test -v 2
after_script:
- coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT