Skip to content
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

Fix travis #76

Merged
merged 8 commits into from
Oct 10, 2019
Merged
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
33 changes: 23 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
sudo: true
cache: apt
cache: ccache
language: C++

matrix:
include:
- os: linux
dist: xenial
dist: bionic
env: CXX_COMPILER=g++-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-8
- pandoc
- libboost-all-dev
- os: linux
dist: xenial
dist: bionic
env: CXX_COMPILER=g++-9
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-9
- pandoc
- libboost-all-dev
- os: linux
dist: bionic
compiler: clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-7
- g++-9
- pandoc
- libboost-all-dev
# - os: osx
# osx_image: xcode10.1
# osx_image: xcode10.3
# - os: osx
# osx_image: xcode11.2


before_install:
Expand All @@ -36,14 +49,14 @@ before_install:
- echo $PATH
- if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
- if [ -n "${CXX_COMPILER}" ]; then export CXX="${CXX_COMPILER}"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install meson && pip install requests; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update && sudo apt-get install python3 && wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip && unzip -q ninja-linux.zip -d ~/bin && pip3 install meson requests; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install meson ccache && pip install requests; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip && unzip -q ninja-linux.zip -d ~/bin && pyenv local 3.7.1 && pip3 install meson requests; fi

script:
# build restbed
- git clone --recursive https://github.com/corvusoft/restbed.git
- mkdir restbed/build
- ( cd restbed/build ; cmake -DBUILD_SSL=NO -DCMAKE_INSTALL_PREFIX="$HOME/local/" .. ; make ; make install )
- ( cd restbed/build ; cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_TESTS=NO -DBUILD_SSL=NO -DCMAKE_INSTALL_PREFIX="$HOME/local/" .. ; make ; make install )
# build otcetera
- export CPPFLAGS="-I${HOME}/local/include"
- export LDFLAGS="-L${HOME}/local/lib -L${HOME}/local/library"
Expand Down