forked from sidewalklabs/s2sphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 1.01 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: cpp
notifications:
email: false
addons:
apt:
packages:
- libssl-dev
- python-dev
- python-pip
- python3-pip
- scons
- swig
sudo: required
matrix:
include:
- os: linux
compiler: gcc
dist: trusty
env:
py3: "true"
- os: osx
compiler: clang
script:
- export PATH=$PATH:~/Library/Python/2.7/bin/
- git submodule update --init --recursive
- pip install --user --upgrade pip
- pip install --user numpy nose flake8 hacking
- pip install --user .
- flake8
- nosetests-2.7 -vv
- |
if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then
cd tests/s2-geometry && ./travis.sh && cd -
# use special python version that is used by s2-geometry under linux
sudo /usr/bin/pip install .
/usr/bin/python2.7 tests/compare_implementations.py -vv
fi
# py3
- |
if [[ "${py3}" == "true" ]]; then
pip3 install --user --upgrade pip
pip3 install --user numpy nose
pip3 install --user .
echo "Python 3 tests:"
nosetests-3.4 -vv
fi