forked from Cloud-CV/Fabrik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.33 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
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 pathlib
- 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
- npm install json-loader
before_script:
- export PYTHONPATH=$PYTHONPATH:$HOME/caffe/caffe/python
- export LD_PRELOAD=/usr/lib/libtcmalloc.so.4
- export PYCAFFE_ROOT=$HOME/caffe/caffe/python
- export PATH=$HOME/caffe/caffe/build/tools:$PYCAFFE_ROOT:$PATH
- 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
- python manage.py makemigrations caffe_app --settings=settings.test
- python manage.py migrate --settings=settings.test
script:
- flake8 ./
- npm run ci
- coverage run --source=caffe_app,keras_app,ide/utils manage.py test
after_success:
- coveralls