forked from yyzybb537/libgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (36 loc) · 1.43 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
before_install:
- sudo add-apt-repository -y ppa:kojoley/boost
- sudo apt-get update -y || echo "update error"
- lsb_release -a
install:
- git clone https://github.com/yyzybb537/Boost-dev-bin.git /tmp/boost-dev-bin && sudo dpkg -i /tmp/boost-dev-bin/libboost1.59-all-dev.deb
- ls /usr/local/lib/libboost*
- sudo ldconfig
#- sudo apt-get install -y -qq libboost1.58-dev
#- sudo apt-get install -y -qq libboost-thread1.58-dev
#- sudo apt-get install -y -qq libboost-coroutine1.58-dev
#- sudo apt-get install -y -qq libboost-context1.58-dev
#- sudo apt-get install -y -qq libboost-system1.58-dev
#- sudo apt-get install -y -qq libboost-date-time1.58-dev
#- sudo apt-get install -y -qq libboost-chrono1.58-dev
#- sudo apt-get install -y -qq libboost-regex1.58-dev
- sudo apt-get install -y -qq cmake
script:
- mkdir build; pushd build;
- cmake .. && make -j4 && sudo make install && make test_small && make samples && make run_test
- sudo rm * -rf && cmake .. -DENABLE_BOOST_COROUTINE=ON && make -j4 && sudo make install && make test_small && make samples && make run_test
- sudo rm * -rf && cmake .. -DENABLE_SHARED_STACK=ON && make -j4 && sudo make install && make test_small && make samples && make run_test
- popd;
after_success:
-
branches:
only:
- dev
- master
notifications:
email: true