forked from NVIDIA/DIGITS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
138 lines (128 loc) · 4.17 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
os: linux
dist: trusty
sudo: required
language: python
python: 2.7
env:
global:
- OPENBLAS_ROOT=~/openblas
- CAFFE_ROOT=~/caffe
- TORCH_ROOT=~/torch
- secure: "WSqrE+PQm76DdoRLRGKTK6fRWfXZjIb0BWCZm3IgHgFO7OE6fcK2tBnpDNNw4XQjmo27FFWlEhxN32g18P84n5PvErHaH65IuS9Nv6FkLlPXZlVqGNxbPmEA4oTkD/6Y6kZyZWZtLh2+/1ijuzQAPnIy/4BEuL8pdO+PsoJ9hYM="
matrix:
- DIGITS_TEST_FRAMEWORK=caffe CAFFE_FORK=NVIDIA
- DIGITS_TEST_FRAMEWORK=caffe CAFFE_FORK=BVLC
- DIGITS_TEST_FRAMEWORK=torch
- DIGITS_TEST_FRAMEWORK=none
- DIGITS_TEST_FRAMEWORK=none WITH_PLUGINS=false
matrix:
include:
- env: LINT_CHECK
addons:
apt:
packages:
- closure-linter
- python-flake8
install: true
script:
- ./digits-lint
- env: DIST
services: docker
addons:
apt:
packages:
- devscripts
- debhelper
- dput
- gnupg
install:
- git remote add nvidia-digits-upstream https://github.com/NVIDIA/DIGITS.git # for forks
- git fetch nvidia-digits-upstream --tags
- pip install twine
script:
- DEBIAN_REVISION=1ppa1~trusty ./packaging/deb/build.sh
- DEBIAN_REVISION=1ppa1~xenial ./packaging/deb/build.sh
- python setup.py sdist bdist_wheel
deploy:
- provider: script
skip_cleanup: true
script: ./scripts/travis/ppa-upload.sh stable
on:
repo: NVIDIA/DIGITS
tags: true
- provider: script
skip_cleanup: true
script: ./scripts/travis/ppa-upload.sh dev
on:
repo: NVIDIA/DIGITS
branch: master
- provider: script # not pypi because travis-ci/dpl#334
skip_cleanup: true
script: ./scripts/travis/pypi-upload.sh
on:
repo: NVIDIA/DIGITS
tags: true
cache:
apt: true
directories:
- $OPENBLAS_ROOT
- $CAFFE_ROOT
- $TORCH_ROOT
addons:
apt:
packages:
- build-essential
- cmake
- cython
- git
- graphviz
- libboost-filesystem-dev
- libboost-python-dev
- libboost-system-dev
- libboost-thread-dev
- libgflags-dev
- libgoogle-glog-dev
- libhdf5-serial-dev
- libleveldb-dev
- liblmdb-dev
- libopencv-dev
- libprotobuf-dev
- libsnappy-dev
- protobuf-compiler
- python-dev
- python-flask
- python-gevent
- python-gevent-websocket
- python-gflags
- python-h5py
- python-matplotlib
- python-mock
- python-nose
- python-numpy
- python-opencv
- python-pil
- python-pip
- python-protobuf
- python-psutil
- python-pydot
- python-requests
- python-scipy
- python-six
- python-skimage
before_install:
- deactivate
- virtualenv --system-site-packages ~/venv
- source ~/venv/bin/activate
install:
- mkdir -p ~/.config/matplotlib
- echo "backend:agg" > ~/.config/matplotlib/matplotlibrc
- ./scripts/travis/install-openblas.sh $OPENBLAS_ROOT
- ./scripts/travis/install-caffe.sh $CAFFE_ROOT
- if [ "$DIGITS_TEST_FRAMEWORK" == "torch" ]; then ./scripts/travis/install-torch.sh $TORCH_ROOT; else unset TORCH_ROOT; fi
- pip install -r ./requirements.txt
- pip install -r ./requirements_test.txt
- pip install -e .
- if [ "$WITH_PLUGINS" != "false" ]; then find ./plugins/*/* -maxdepth 0 -type d | xargs -n1 pip install -e; fi
script:
- ./digits-test -v