forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·35 lines (35 loc) · 1.02 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
language: python
sudo: false
services:
- docker
- xvfb
python:
- "3.6"
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 ./
- docker-compose build
- docker-compose run nodejs bash -c "gulp dev && karma start --single-run"
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django pytest --cov . --cov-config .coveragerc
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
after_success:
- bash <(curl -s https://codecov.io/bash)
- coveralls --rcfile=.coveragerc
- 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