-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
61 lines (56 loc) · 1.54 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
60
61
language: cpp
dist: bionic
sudo: true
matrix:
include:
- os: linux
env:
- PYTHON=3.6
- CXX=g++-5
- CC=gcc-5
- CXXFLAGS = "$CXXFLAGS -std=c++14"
# - os: linux
# env: CONDA=3.6 CXX=g++ CC=gcc CXXFLAGS = "$CXXFLAGS -std=c++14"
# Boost
addons:
apt:
update: true
sources:
- boost-latest
packages:
- libboost-all-dev
- g++-5
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install gcc-5 -y
- sudo apt-get install g++-5 -y
- sudo apt-get install python-pip python-dev build-essential
- sudo apt-get install python3-setuptools
- sudo apt-get install python3-pip
- sudo add-apt-repository ppa:ubuntugis/ppa -y && sudo apt-get update
- sudo apt-get update
- sudo apt-get install gdal-bin
- sudo apt-get install libgdal-dev
- sudo apt-get install shapelib
- sudo apt-get install libshp-dev
- sudo pip install --user --upgrade pip virtualenv
- sudo python3 -m pip install --upgrade pip
- sudo python3 -m pip install pybind11
install:
#- |
# if [ -n "$PYTHON" ]; then
# sudo apt-get install -qq g++-6
# sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
- cd $TRAVIS_BUILD_DIR
- ls $HOME
- sudo python3 setup.py install
# - sudo python3 setup.py sdist
# - sudo pip install --verbose dist/*.tar.gz
# elif [ -n "$CONDA" ]; then
# conda build conda.recipe
# conda install --use-local pydggrid
# fi
script:
- cd $TRAVIS_BUILD_DIR
- sudo python3 -m unittest discover