-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
31 lines (27 loc) · 848 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
compiler:
- c++
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
before_script:
- sudo unlink /usr/bin/g++
- sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- g++ --version
- WORKSPACE=$PWD
- sudo apt remove cmake
- curl "https://cmake.org/files/v3.9/cmake-3.9.0-rc3.tar.gz" > /tmp/cmake.tar.gz
- cd /tmp; tar -xf cmake.tar.gz
- cd cmake-3.9.0-rc3/; ./configure
- make | tail -n50
- sudo make install | tail -n50
- curl -L "https://downloads.sourceforge.net/project/boost/boost/1.63.0/boost_1_63_0.tar.gz" > /tmp/boost.tar.gz
- cd /tmp; tar -xf boost.tar.gz
- cd boost_1_63_0/; ./bootstrap.sh --prefix=/usr/local | tail -n50
- sudo ./b2 install
- cd $WORKSPACE; cmake .; make
- cd $WORKSPACE/examples/calculator/; cmake .; make
script: cd $WORKSPACE/bin; ./easycctests