-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (35 loc) · 824 Bytes
/
.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
language: cpp
dist: trusty
matrix:
include:
- os: linux
env: PYTHON=2.7
- os: linux
env: PYTHON=3.7
- os: osx
env: PYTHON=2.7
- os: osx
env: PYTHON=3.7
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-4.8 CC=gcc-4.8; fi
if [ -n "$PYTHON" ]; then
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export PATH="/Users/travis/Library/Python/2.7/bin:$PATH"
if [ "${PYTHON:0:1}" = "3" ]; then
brew update; brew install python3;
fi
fi
python -m pip install --user virtualenv
virtualenv -p python${PYTHON:0:1} venv
source venv/bin/activate
fi
install:
- |
if [ -n "$PYTHON" ]; then
python setup.py sdist
python -m pip install 'pybind11>=2.3'
python -m pip install --verbose dist/*.tar.gz
fi
script:
- python tests/test.py