Skip to content

Travis Build #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from
May 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
sudo: required
dist: trusty

env:
global:
- secure: "Y7yT+6s/jtFOoatyLxWWu6aEfcQyPxzAj33iSsl3PTu93gDHggmN3aNsvMmWU0un+n6YEyKZqk2u5wpaIGzRLvVCd2fqXoF5QJ06XrnC+prlCoepYWBqjRNX8aNSwyo5E9sbhqA4PKO0NnQChBg/mtmvne5jLlY+kIyF57pomObpSTJuG6jNyGi0+Zk1Ht+9K6E9YzwaW7aqEurByxAWfQb7ZSa0ylFzZo8yDQRTicsTmsx3Tc19eT9RZpP7zzBn0EqeJuzEgxT4e+P2wFBdp/++1Kbp/NmhYSDq9RnEMjS1WM5oFcPVdP5GOGk0C4koUytJntSeRjKkpBYohEQ1erUzHgOUJb2KxOodS7yJGtiuSQVHPw9i1sESxGZ7r/y9Rw7g78FXoKNnkcLeemJZxoKagvOmwsYQJNEKGA4Oz4aaWD/h+GWlJeGv4P4ad6k9xsrlJhdOnJGi0C1TwR2QYEJnWgLyrtKzWb28x5krCUVGuPQkrTf20tDqYyTlloqmmu3OW0/yxJq5OoFq0HhME3ilyU09SnL+1wrFwLiWxMG7f1ZE1d6lNYv+ApUr73FRpBdxob1bPEC/41LW+z8TcrKjGevY/MuIUipF6Oubcwrus9EQbWotL0NZVmi52rDV4DE6S07vdUIxIm0kkka4fAGxq7puKftY/3tuB3gKvME="
- secure: "UT/EoNNzrYM7h8ysXm8/16NafzohCE5s9/4jhII9qakTbIb27WgCoaoYi/3IP5GMhqIGjQVPUEZGmxxU4dAz0BAw2np96WkvMCavIjtW+nhbUss2xx1714XYkVACDm9NN+rceWcLJs0OCYMCdrQPzYMJkedW6bvsCmUJMFfvKY4ReNwXpfQHSt9z/vIlEy0ODW5Z4eaKFAwfsfvifd/HkBdsosJrC57D1v4GSjiwyhGXj6oy+BPT1zSSXNnGT4fX3KTpIsXIN8y4QjaeukZxUKusInzoV+NyMYhQZ+HeJdei0wwTItShmaE6OjcBaDyK3y24rhZVEXwKwY09sYE4RzuVMOE8f9yBTWOjPqM4ixflwTxrHc8M5D7aaQQkPW+HPUSFgGMQd76paHAR7JJHok9dXHTcHUT5zztMKXOVInqLz3b65+h8ZYhzXixB0blvct1UzG/7+jIVrr2B24qd1PGVFxXBXEoq8cyV4ZV9V9YFgYtl1Rk18K+Bp1DP9eRMrHKtbQNE4fB1OQzYsDhGvHqD0x1FKepg+EgUUSHUZmgEgZ1SmvElQIlETufRToKyb23oFGG1kVojvf0rNC+fwMxJqO3q0ZNl9yGUrX3J3XFjgEQTDSh/PenPHZkyrvBTE9XaoNEHMjIM+od+XPnfnNKFHvwbWvMT9ZM72fWN6Rw="

language: cpp

compiler:
- gcc

script: ./scripts/install_ubuntu_14.04.sh
before_script:
- ./scripts/fetch_folly_ubuntu_trusty.sh
- ./scripts/prepare_ubuntu_trusty.sh
script:
- mkdir build
- cd build
- cmake ..
- make -j8
- ./ReactiveSocketTest
56 changes: 56 additions & 0 deletions scripts/build_folly_ubuntu_trusty.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
### Build folly and upload libs/includes to Bitbucket
# Note that USERNAME:PASSWORD placeholders below need to be edited

# prerequisites for folly
sudo apt-get -y install \
g++ \
automake \
autoconf \
autoconf-archive \
libtool \
libboost-all-dev \
libevent-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
make \
zlib1g-dev \
binutils-dev \
libjemalloc-dev \
libssl-dev

sudo apt-get -y install \
libiberty-dev

# build and install folly
git clone https://github.com/facebook/folly.git
cd folly/folly

autoreconf -ivf
./configure
make
make check
sudo make install

cd ../..

# store binary on Bitbucket (files too large for Github)
git config --global user.name "ReactiveSocket"
git config --global user.email "email@host.com"
git config --global push.default simple
git clone https://USERNAME:PASSWORD@bitbucket.org/reactivesocket/reactivesocket-cpp-dependencies.git
cd reactivesocket-cpp-dependencies
cd lib
cp /usr/local/lib/*folly* .
git add *
cd ..
cd include
cp -R /usr/local/include/folly .
git add *
cd ..
git commit -a -m "folly binary"
git push origin
cd ..
18 changes: 18 additions & 0 deletions scripts/fetch_folly_ubuntu_trusty.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# fetch folly lib and include for Ubuntu 14.04 Trusty
git config --global user.name "ReactiveSocket"
git config --global user.email "email@address.com"
git config --global push.default simple
git clone https://bitbucket.org/reactivesocket/reactivesocket-cpp-dependencies.git
cd reactivesocket-cpp-dependencies
cd lib
echo "Copy folly libs to /usr/local/lib"
sudo cp -R *folly* /usr/local/lib/
cd .. # out of lib
cd include
echo "Copy folly includes to /usr/local/include/folly"
sudo cp -R folly /usr/local/include/
cd .. # out of include
cd .. # back to top
echo "Done fetching folly."


21 changes: 21 additions & 0 deletions scripts/prepare_ubuntu_trusty.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# libs required for Folly
sudo apt-get -y install \
g++ \
automake \
autoconf \
autoconf-archive \
libtool \
libboost-all-dev \
libevent-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
make \
zlib1g-dev \
binutils-dev \
libjemalloc-dev \
libssl-dev \
libiberty-dev