forked from alexandradutz/libsmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (42 loc) · 1.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
matrix:
fast_finish: true
include:
- os: linux
language: python
sudo: required
dist: trusty
- os: osx
osx_image: xcode61
cache: pip
addons:
apt:
packages:
- libusb-1.0
- libboost-all-dev
before_install:
- if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew update; fi
install:
- if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew install libusb; fi
- if [[ ${TRAVIS_OS_NAME} == osx ]]; then brew install python || true; fi
# for python bindings
- pip install --disable-pip-version-check --upgrade pip
- pip install wheel cython
script:
- mkdir build
- pushd build
- cmake -DBUILD_PYTHON=OFF ..
- make
# create generic binary shell-based installer/tarball
- make package
# build OS X installer
- if [[ ${TRAVIS_OS_NAME} == osx ]]; then chmod +x build-osx-pkg.sh; fi
- if [[ ${TRAVIS_OS_NAME} == osx ]]; then ./build-osx-pkg.sh; fi
- popd
# check python version
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
# build python bindings
- pushd bindings/python
- python setup.py build_ext -L ../../build/src
- python setup.py build
- python setup.py bdist_wheel --skip-build