forked from NVIDIA/DIGITS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
137 lines (127 loc) · 4.03 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
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
os: linux
dist: trusty
sudo: required
language: python
python: 2.7
env:
global:
- CAFFE_ROOT=~/caffe
- TORCH_ROOT=~/torch
# Fixes for Torch and OpenBLAS
- OMP_NUM_THREADS=1
- OPENBLAS_MAIN_FREE=1
- 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
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:
- $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
- libopenblas-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:
- ./scripts/travis/install-caffe.sh $CAFFE_ROOT
- if [ "$DIGITS_TEST_FRAMEWORK" == "torch" ]; then travis_wait ./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 .
- pip install -e ./plugins/data/imageGradients
- pip install -e ./plugins/view/imageGradients
script:
- ./digits-test -v