-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (22 loc) · 927 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: cpp
compiler: g++
notifications:
email: false
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir 3rdparty; cd ./3rdparty; wget --no-check-certificate http://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz; tar -xzf cmake-3.8.2-Linux-x86_64.tar.gz; cd ..; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-6" CC="gcc-6"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$PWD/3rdparty/cmake-3.8.2-Linux-x86_64/bin:$PATH; fi
script:
- mkdir build
- cd build
- cmake ..
- make
after_success:
- find . -maxdepth 1 -type f -executable ! -name cmake_install.cmake -newer Makefile -print | while read app; do printf "\n=========================================\nExecutable:\t$app\n=========================================\n"; "$app"; done