-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
22 lines (19 loc) · 742 Bytes
/
.travis.yml
File metadata and controls
22 lines (19 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language:
- cpp
compiler:
- gcc
before_install:
- wget --no-verbose --output-document=boost_1_58_0.tar.gz http://nchc.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz
- export BOOST_ROOT="$TRAVIS_BUILD_DIR/../boost"
- mkdir -p $BOOST_ROOT
- tar zxf boost_1_58_0.tar.gz --strip-components=1 -C $BOOST_ROOT
install:
- (cd $BOOST_ROOT; ./bootstrap.sh --with-libraries=system,filesystem,thread)
- (cd $BOOST_ROOT; sudo ./b2 threading=multi link=static --prefix=/usr/local -d0 install)
script:
- mkdir _builds
- cd c++
- g++ *.cpp -o ../_builds/server -pthread -lboost_system -lboost_filesystem -lboost_thread -lrt -O2 -DNDEBUG
- cd ../_builds
- file server
- ldd server