-
Notifications
You must be signed in to change notification settings - Fork 786
/
.travis.yml
executable file
·37 lines (37 loc) · 1.3 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
language: python
sudo: false
services:
- docker
- xvfb
python:
- '3.7.5'
cache:
directories:
- '$HOME/.cache/pip'
before_install:
- sudo rm -f /etc/boto.cfg
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
install:
- pip install awscli==1.18.66 flake8==3.8.2
script:
- flake8 ./ || travis_terminate 1;
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || travis_terminate 1; fi'
- docker-compose build || travis_terminate 1;
- docker-compose run nodejs bash -c "gulp dev && karma start --single-run && gulp staging" || travis_terminate 1;
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django pytest --cov . --cov-config .coveragerc || travis_terminate 1;
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
after_success:
- bash <(curl -s https://codecov.io/bash)
- coveralls --rcfile=.coveragerc
- eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_77d2d82026f6_key -iv $encrypted_77d2d82026f6_iv
-in scripts/deployment/evalai.pem.enc -out scripts/deployment/evalai.pem -d || true
- './scripts/deployment/push.sh'
- './scripts/deployment/deploy.sh auto_deploy'
notifications:
email:
on_success: change
on_failure: always
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea