forked from Cloud-CV/EvalAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.04 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
language: python
sudo: false
services:
- docker
python:
- '3.6'
addons:
postgresql: '10'
apt:
packages:
- postgresql-10
- postgresql-client-10
- oracle-java8-set-default
env:
global:
- PGPORT=5432
cache:
directories:
- "$HOME/.cache/pip"
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_script:
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10/main/postgresql.conf
- sudo cp /etc/postgresql/{9.4,10}/main/pg_hba.conf
- sudo service postgresql restart
- psql -c "CREATE DATABASE evalai" -U postgres
- wget https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.14.2.jar
- java -jar elasticmq-server-0.14.2.jar &
before_install:
- sudo rm -f /etc/boto.cfg
install:
- pip install -r requirements/dev.txt
- pip install awscli==1.16.57 coveralls
script:
- flake8 ./
- py.test --cov . --cov-config .coveragerc
after_success:
- coveralls --rcfile=.coveragerc
- ./scripts/deployment/push.sh
notifications:
email:
on_success: change
on_failure: always
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea