-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
89 lines (81 loc) · 2.53 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
language: python
matrix:
include:
- os: linux
sudo: required
dist: trusty
python: "2.7"
env: LIBFREENECT2_VERSION="v0.2.0"
- os: linux
sudo: required
dist: trusty
python: "3.4"
env: LIBFREENECT2_VERSION="v0.2.0"
- os: linux
sudo: required
dist: trusty
python: "3.5"
env: LIBFREENECT2_VERSION="v0.2.0"
- os: linux
sudo: required
dist: trusty
python: "3.5"
env: LIBFREENECT2_VERSION="master"
# TODO: python for osx is not supported for now
# ref: https://github.com/travis-ci/travis-ci/issues/4729
# - os: osx
# python: "2.7"
notifications:
email: false
before_install:
- cd $HOME
- git clone https://github.com/OpenKinect/libfreenect2.git
- cd libfreenect2
- git checkout $LIBFREENECT2_VERSION
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export LD_LIBRARY_PATH=/usr/local/lib
sudo apt-get update;
cd depends;
./download_debs_trusty.sh;
sudo apt-get install -y build-essential cmake pkg-config;
sudo dpkg -i debs/libusb*deb;
sudo apt-get install -y libturbojpeg libjpeg-turbo8-dev;
sudo apt-get install -y libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev;
sudo dpkg -i debs/libglfw3*deb;
sudo apt-get install -f;
sudo apt-get install -y libgl1-mesa-dri-lts-vivid;
MINICONDA_OSNAME="Linux";
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
export DYLD_LIBRARY_PATH=/usr/local/lib
brew update;
brew install cmake pkg-config;
brew install libusb;
brew tap homebrew/versions;
brew install glfw3;
MINICONDA_OSNAME="MacOSX";
fi
- cd $HOME/libfreenect2
- mkdir build && cd build
- cmake ..
- make
- sudo make install
- if [["$TRAVIS_PYTHON_VERSION" == "2.7"]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-$MINICONDA_OSNAME-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-3.8.3-$MINICONDA_OSNAME-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda config --add channels pypi
- conda info -a
- deps='numpy cython nose'
- conda create -q -n test-environment "python=$TRAVIS_PYTHON_VERSION" $deps
- source activate test-environment
- cd $TRAVIS_BUILD_DIR
install:
- pip install -e .
script:
- nosetests -v -w tests/ -a '!require_device'