-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.travis.yml
More file actions
executable file
·71 lines (61 loc) · 1.54 KB
/
.travis.yml
File metadata and controls
executable file
·71 lines (61 loc) · 1.54 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
sudo: true
language: python
python:
- "2.7"
compiler: gcc
env:
global:
- DJANGO_SETTINGS_MODULE="cloudcv17.settings"
# Caffe
- WITH_CUDA=false
- WITH_CMAKE=true
- TOOLS_DIR="$HOME/tools"
- WITH_IO=true
cache:
pip: true
custom_install: true
apt: true
directories:
- $TOOLS_DIR/miniconda
- $TOOLS_DIR/opencv
- $TOOLS_DIR/caffe
before_install:
- export NUM_THREADS=4
- export SCRIPTS=./scripts/travis
- export CONDA_DIR="$TOOLS_DIR/miniconda$PYTHON_VERSION"
install:
- deactivate
- sudo apt-get update
- sudo apt-get install -y software-properties-common
- bash $SCRIPTS/build-miniconda.sh
- export PATH="$CONDA_DIR/bin:$PATH"
- echo $PATH
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- echo $(python -c "import sys; print sys.path")
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install python-coveralls
- pip install flake8
# - $SCRIPTS/install-opencv.sh
- $SCRIPTS/travis_install_caffe.sh
before_script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/cuda/lib64:$CONDA_DIR/lib
- export PATH=$CONDA_DIR/bin:$PATH
- if ! $WITH_CMAKE; then $SCRIPTS/travis_setup_makefile_config.sh; fi
- $SCRIPTS/travis_setup_and_build_caffe.sh
- export PYTHONPATH=$PYTHONPATH:$TOOLS_DIR/caffe/python
script:
- flake8 ./
after_success:
- echo "done"
after_failure:
- rm -rf $CONDA_DIR
- rm -rf $TOOLS_DIR/opencv
- echo "failure"
notifications:
email:
on_success: change
on_failure: always