Skip to content

Commit 3573f1c

Browse files
hjmallonfacebook-github-bot
authored andcommitted
WIP: Fix Travis-CI builds (#193)
Summary: These changes fix Travis-CI builds on macOS and partially on Linux. The only thing left to do on Linux is #192 This pull request also requires #188 Pull Request resolved: #193 Reviewed By: claudiozz Differential Revision: D24933398 Pulled By: davide125 fbshipit-source-id: eb96db30a3cb71695111a7d41ca2c27fbe891d87
1 parent 90a1212 commit 3573f1c

File tree

3 files changed

+18
-47
lines changed

3 files changed

+18
-47
lines changed

.travis.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ os:
66
- linux
77
- osx
88

9-
osx_image: xcode8.3
9+
# Need >= xcode9 to build folly
10+
osx_image: xcode9.4
11+
12+
# Need >= gcc 5 to build folly
13+
dist: xenial
1014

1115
compiler:
1216
- clang
@@ -16,15 +20,10 @@ addons:
1620
apt:
1721
sources:
1822
- boost-latest
19-
- ubuntu-toolchain-r-test
20-
- llvm-toolchain-precise-3.6
2123
packages:
22-
- g++-4.9
23-
- clang-3.6
24-
- libboost-system1.55-dev
25-
- libboost-filesystem1.55-dev
26-
# - libssl-dev
27-
# - openssl-1.0.1f
24+
- libboost-system-dev
25+
- libboost-filesystem-dev
26+
- libssl-dev
2827

2928
script:
3029
# Debug

build/travis_linux.sh

+6-26
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,17 @@ echo $HOSTNAME
1010
mkdir $HOME/bin || true
1111
export PATH=$HOME/bin:$PATH
1212
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
13+
export CMAKE_PREFIX_PATH=$HOME
1314
openssl version
14-
if [[ "$CXX" == "clang++" ]] ; then
15-
export CC=clang-3.6
16-
export CXX=clang++-3.6
17-
else
18-
ln -s /usr/bin/g++-4.9 $HOME/bin/g++
19-
ln -s /usr/bin/gcc-4.9 $HOME/bin/gcc
20-
fi
2115
cd ..
22-
# remove the dangerous no-check-certificate when travis is fixed...
23-
# https://github.com/travis-ci/travis-ci/issues/5059
24-
wget --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.sh
25-
sh cmake-3.3.2-Linux-x86_64.sh --prefix=$HOME --skip-license
26-
OPENSSL_VERSION=openssl-1.0.1q
27-
wget https://www.openssl.org/source/$OPENSSL_VERSION.tar.gz
28-
tar xfz $OPENSSL_VERSION.tar.gz
29-
ls -l $HOME/bin
30-
( cd $OPENSSL_VERSION ; ./config --prefix=$HOME threads shared; make; make install )
31-
which openssl
32-
$HOME/bin/openssl version
33-
ldd $HOME/bin/openssl
34-
export OPENSSL_ROOT_DIR=$HOME
35-
git clone https://github.com/floitsch/double-conversion.git
36-
(cd double-conversion; cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$HOME .; make -j 4 && make install)
37-
git clone https://github.com/schuhschuh/gflags.git
38-
(mkdir gflags/build; cd gflags/build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -DGFLAGS_NAMESPACE=google -DBUILD_SHARED_LIBS=on .. && make -j 4 && make install)
16+
git clone https://github.com/google/double-conversion.git
17+
(mkdir double-conversion-build; cd double-conversion-build; cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$HOME ../double-conversion; make -j 4 && make install)
18+
git clone https://github.com/gflags/gflags.git
19+
(mkdir gflags-build; cd gflags-build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -DGFLAGS_NAMESPACE=google -DBUILD_SHARED_LIBS=on ../gflags && make -j 4 && make install)
3920
git clone https://github.com/google/glog.git
40-
(mkdir glog/build; cd glog/build; cmake -DINCLUDE_DIRECTORIES=$HOME/include -DCMAKE_INSTALL_PREFIX=$HOME -DBUILD_SHARED_LIBS=on .. && make -j 4 && make install)
21+
( cd glog && ./autogen.sh && ./configure --with-gflags=$HOME --prefix=$HOME && make -j 4 && make install )
4122
git clone https://github.com/facebook/folly.git
4223
pwd ; ls -l
4324
cd wdt
44-
4525
#set +e
4626
set +x

build/travis_osx.sh

+4-12
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,15 @@ echo $HOSTNAME
99
mkdir $HOME/bin || true
1010
brew update
1111
brew install openssl || true
12-
brew link --force openssl || true
13-
CMAKE_BASE=cmake-3.6.1-Darwin-x86_64
1412
cd ..
15-
CMAKE_BIN_DIR=`pwd`/$CMAKE_BASE/CMake.app/Contents/bin
16-
export PATH=/usr/local/opt/openssl/bin:$CMAKE_BIN_DIR:$HOME/bin:$PATH
13+
export PATH=/usr/local/opt/openssl/bin:$HOME/bin:$PATH
1714
export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$HOME/lib:$LD_LIBRARY_PATH
1815
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl
1916
export CMAKE_PREFIX_PATH=$HOME
2017
openssl version -a
21-
wget https://www.cmake.org/files/v3.6/$CMAKE_BASE.tar.gz
22-
tar xfz $CMAKE_BASE.tar.gz
23-
which cmake
24-
cmake --version
25-
git clone https://github.com/floitsch/double-conversion.git
26-
mkdir double-conversion-build
27-
(cd double-conversion-build; cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$HOME ../double-conversion; make -j 4 && make install)
28-
git clone https://github.com/schuhschuh/gflags.git
18+
git clone https://github.com/google/double-conversion.git
19+
(mkdir double-conversion-build; cd double-conversion-build; cmake -DBUILD_SHARED_LIBS=on -DCMAKE_INSTALL_PREFIX=$HOME ../double-conversion; make -j 4 && make install)
20+
git clone https://github.com/gflags/gflags.git
2921
(mkdir gflags-build; cd gflags-build; cmake -DCMAKE_INSTALL_PREFIX=$HOME -DGFLAGS_NAMESPACE=google -DBUILD_SHARED_LIBS=on ../gflags && make -j 4 && make install)
3022
git clone https://github.com/google/glog.git
3123
( cd glog && ./autogen.sh && ./configure --with-gflags=$HOME --prefix=$HOME && make -j 4 && make install )

0 commit comments

Comments
 (0)