Skip to content

Instantly share code, notes, and snippets.

@yunyu
Last active November 13, 2017 15:21
Show Gist options
  • Save yunyu/abbcf7864becb82eaa9deb1e895e465a to your computer and use it in GitHub Desktop.
Save yunyu/abbcf7864becb82eaa9deb1e895e465a to your computer and use it in GitHub Desktop.
language: cpp
sudo: false
matrix:
allow_failures:
# To allow a build matrix entry to fail, add this key to said entry.
- custom_allow_failures: true
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-format-5.0
env:
- KEY=linter
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
- george-edison55-precise-backports
packages:
- clang-3.8
- clang-format-3.8
- cmake-data
- cmake
env:
- KEY=clang++-3.8 MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-6
- cmake-data
- cmake
env:
- KEY=g++-6 MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
before_install:
# update envvar config
- eval $MATRIX_EVAL
# report versions
- cmake --version
- $CXX --version
install:
# setup cmake
- mkdir bin
script:
- . .travis.sh
after_success:
- echo "Yay! Your code passed this test."
after_failure:
- echo "Uh-oh - something is wrong with your code!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment