-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
53 lines (48 loc) · 1.02 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
language: python
branches:
except:
- dev
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
- gfortran
- liblapack-dev
- libfftw3-dev
- libsndfile1-dev
env:
- CXX=g++-6
- CC=gcc-6
- PIP=pip
python: 3.6.5
install:
- echo "TESTVAR -> $TEST"
- "$PIP install -r requirements.txt --upgrade"
- python --version
- cmake -H. -Bbuild-proj
- echo "Building tests"
- cd build-proj
- cmake --build . --target all
- cd ..
script:
- pip install .
- echo "Performing python library tests"
- python ./test/test_libtempo_py/integration_test.py
- echo "Performing CPP tests"
- cd build-proj
- "./test/test_libtempo/test_libtempo"
- "./test/test_main/test_main"
- cd ..
- echo "Deploying python package"
- python setup.py sdist bdist_wheel
- if [ "$TRAVIS_BRANCH" = "master" ]; then twine upload dist/* -u egordm --skip-existing; fi
notifications:
email: false