forked from bast/pybind11-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (54 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
54
55
56
57
58
59
language: python
sudo: false
matrix:
include:
- os: linux
compiler: gcc
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'gcc-4.9']
env:
- CXX='g++-4.9'
- CC='gcc-4.9'
python: 2.7
- os: linux
compiler: gcc
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.9', 'gcc-4.9']
env:
- CXX='g++-4.9'
- CC='gcc-4.9'
python: 3.4
- os: osx
osx_image: xcode7.3
compiler: gcc
sudo: required
language: generic
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
# manually install python on osx
brew update
brew install python3
brew reinstall gcc
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt --upgrade
fi
- pip install -r requirements.txt --upgrade
- python --version
script:
- mkdir build
- cd build
- cmake ..
- make
- ls
# - python -c 'import example'
- cd ..
- pep8 --ignore E501 test.py
# - PYTHONPATH=build pytest -vv test.py
notifications:
email: false