forked from facebook/wdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (57 loc) · 1.89 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
sudo: false
os:
- linux
- osx
compiler:
# - clang
- gcc
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libboost-system1.55-dev
#- libgoogle-glog-dev
#- libdouble-conversion-dev
script:
# Debug
- date ; uname -a ; pwd ; ls -l ..; echo $HOSTNAME
# Build
- mkdir build && cd build
- cmake .. -DBUILD_TESTING=1
#- make -j 4 VERBOSE=1
- make -j 4
- export WDT_TEST_SYMLINKS=0
- CTEST_OUTPUT_ON_FAILURE=1 make test
# to see the full output/debug:
#- ../wdt_e2e_simple_test.sh
before_install:
- mkdir $HOME/bin
- export PATH=$HOME/bin:$PATH
- export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
- ln -s /usr/bin/g++-4.9 $HOME/bin/g++
- ln -s /usr/bin/gcc-4.9 $HOME/bin/gcc
#- export CC=gcc-4.9
#- export CXX=g++-4.9
#- dpkg -L g++-4.9
#- ls -l /usr/bin/g*
#- wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz
#- tar xfz cmake-3.2.3.tar.gz
#- ( cd cmake-3.2.3 && ./bootstrap --prefix=$HOME --parallel=8 && make -j 4 && make install )
- cd ..
- wget http://www.cmake.org/files/v3.3/cmake-3.3.0-Linux-x86_64.sh
- sh cmake-3.3.0-Linux-x86_64.sh --prefix=$HOME --skip-license
- git clone https://github.com/floitsch/double-conversion.git
- (cd double-conversion; cmake -DCMAKE_INSTALL_PREFIX=$HOME .; make -j 4 && make install)
- git clone https://github.com/schuhschuh/gflags.git
- (mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -D GFLAGS_NAMESPACE=google -D BUILD_SHARED_LIBS=on .. && make -j 4 && make install)
- svn checkout http://google-glog.googlecode.com/svn/trunk/ glog
- ( cd glog && ./configure --with-gflags=$HOME --prefix=$HOME && make -j 4 && make install )
- git clone https://github.com/facebook/folly.git
- pwd ; ls -l
- cd wdt
# - sudo apt-get update -qq
# - sudo apt-get install -y glog gflags cmake-3.2
language: cpp