-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.travis.yml
58 lines (53 loc) · 2.41 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
language: python
sudo: enabled
matrix:
include:
- name: CUDA 9
python: 3.6
env:
- CUDA=9.2.148-1
- CUDA_SHORT=9.2
- UBUNTU_VERSION=ubuntu1604
dist: xenial
install:
# Refer to https://github.com/jeremad/cuda-travis
- INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
- wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
- sudo dpkg -i ${INSTALLER}
- wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
- sudo apt-key add 7fa2af80.pub
- sudo apt update -qq
# - sudo apt install -y cuda-core-${CUDA_SHORT/./-} cuda-cudart-dev-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-} cuda
- sudo apt install -y cuda
- sudo apt clean
- export CUDA_HOME=/usr/local/cuda
- export CUDA_PATH=$CUDA_HOME
- export PATH=${CUDA_HOME}/include:${PATH}
# fix libcuda.so.1 not found issue
- sudo ln -s ${CUDA_HOME}/lib64/stubs/libcuda.so ${CUDA_HOME}/lib64/stubs/libcuda.so.1
- export LD_LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LD_LIBRARY_PATH}
# Refer to https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/use-conda-with-travis-ci.html
- sudo apt update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -f environment.yml
- travis_retry conda activate V2O
- pip install requests requests_futures h5py mmcv torchstat pytest
- sudo apt-get install libopenblas-dev
- sudo apt-get install --reinstall libtheora0
- export LD_LIBRARY_PATH=$HOME/miniconda/envs/V2O/lib:/usr/local/lib:/$LD_LIBRARY_PATH
script:
- export CUDA_VISIBLE_DEVICES="-1"
- export BUILD_FLAG="1"
- export PYTHONPATH=$PYTHONPATH:$PWD/hysia:$PWD
- bash scripts/download-data.sh
- bash scripts/build.sh
- python -m pytest --ignore=tests/test_monitor/test_monitor.py --ignore=tests/test_profiler/ --ignore=tests/test_build_classifier.py --ignore=tests/test_clipper/ --ignore=tests/test_tfs/ --ignore=tests/test_search.py --ignore=tests/test_clipper_mmdet.py --ignore=tests/test_mmdet.py --ignore=tests/test_product.py --ignore=tests/test_ray_tf.py tests/
notifications:
email: false