-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
73 lines (60 loc) · 2.03 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
62
63
64
65
66
67
68
69
70
71
72
73
sudo: required
dist: trusty
language: cpp
notifications:
email:
compiler: gcc
branches:
only:
- master
- develop
before_install:
# print the distro information
- lsb_release -a
# force gcc above 5
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# cache refresh required to install packages
- sudo apt-get update -q=2
# install dependencies
- sudo apt-get -y install build-essential libxml2-dev gcc-multilib g++-multilib libraptor2-dev swig3.0 python-dev
- curl --tlsv1.2 -L https://github.com/open-source-parsers/jsoncpp/archive/1.7.7.tar.gz > jsoncpp-1.7.7.tar.gz
- tar -xzf jsoncpp-1.7.7.tar.gz
- cd jsoncpp-1.7.7
- cmake . -Bbuild -DBUILD_SHARED_LIBS=TRUE
- cd build
- sudo make install
- cd ../..
- ls /usr/local/lib
- echo "TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR"
# build
- mkdir -p ~/build/libSBOL
install:
- cd ~/build/libSBOL
- sudo apt-get install -q=2 g++-4.8
- export CXX="g++-5" CC="gcc-5"
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/install_x64 -DSBOL_BUILD_64=ON -DSBOL_BUILD_SHARED=ON -DCURL_LIBRARY=/usr/lib/x86_64-linux-gnu/libcurl.so -DLIBXSLT_LIBRARIES=/usr/lib/x86_64-linux-gnu/libxslt.so -DRAPTOR_LIBRARY=/usr/lib/x86_64-linux-gnu/libraptor2.so -DSBOL_BUILD_PYTHON2=ON -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so python2.7 -DSWIG_EXECUTABLE=/usr/bin/swig3.0 "$TRAVIS_BUILD_DIR"
- make
- make install
before_script: true
script:
- cd ~/build/libSBOL
- make -j2 && make install
#- cd ~/install_x64/test
#- ./sbol_test
- ls ~
- ls ~/build
- ls ~/build/libSBOL
- ls ~/build/SynBioDex
- cd ~/build/SynBioDex/libSBOL/release/wrapper/Linux_64_2
- python -c "from sbol import *; testSBOL()"
- python -c "from sbol.unit_tests import *; runRoundTripTests()"
addons:
apt:
sources:
- llvm-toolchain-precise
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5