forked from Cloud-CV/Fabrik
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
43 lines (34 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
36
37
38
39
40
41
42
43
dist: trusty
sudo: required
language: python
python:
- "2.7"
addons:
postgresql: "9.4"
cache:
directories:
- $HOME/.cache/pip
- $HOME/caffe
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install -r requirements/dev.txt
- . $HOME/.nvm/nvm.sh
- sh requirements/caffe_tensorflow_keras_install.sh
- nvm install stable
- nvm use stable
- npm install
before_script:
- export PYTHONPATH=$PYTHONPATH:$HOME/caffe/caffe/python
- psql -c "CREATE DATABASE fabrik" -U postgres
- psql -c "CREATE USER admin WITH PASSWORD 'fabrik'" -U postgres
- psql -c "ALTER ROLE admin SET client_encoding TO 'utf8'" -U postgres
- psql -c "ALTER ROLE admin SET default_transaction_isolation TO 'read committed'" -U postgres
- psql -c "ALTER ROLE admin SET timezone TO 'UTC'" -U postgres
- psql -c "ALTER USER admin CREATEDB" -U postgres
script:
- flake8 ./
- npm run ci
- KERAS_BACKEND=theano coverage run --source=caffe_app,keras_app,ide/utils manage.py test
after_success:
- coveralls