-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (55 loc) · 1.76 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Travis CI Build.
# HOME path: /home/travis
# Git clone path: /home/travis/build/osom8979/tbag
# build directory: $TRAVIS_BUILD_DIR
language: cpp
cache:
apt: true
directories:
- $TRAVIS_BUILD_DIR/cmake_build/external
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
#- george-edison55-cmake-3.x # Disallowing sources: george-edison55-cmake-3.x
- george-edison55-precise-backports
packages:
- automake
- build-essential
- git
- curl
- unzip
- g++-7
- ocl-icd-opencl-dev
- libglu1-mesa-dev
- libudev-dev
- xorg-dev
- libxcb-image0-dev
before_install:
#- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
#- sudo add-apt-repository --yes ppa:george-edison55/precise-backports
#- sudo apt-get -qq update
#- sudo apt-get install -y git cmake cmake-data curl unzip g++-7
- curl -L -O https://github.com/Kitware/CMake/releases/download/v3.18.0/cmake-3.18.0-Linux-x86_64.sh
- chmod +x cmake-3.18.0-Linux-x86_64.sh
- sudo ./cmake-3.18.0-Linux-x86_64.sh --skip-license --prefix=/usr/local
- export TPARTY_HOME=$HOME/tparty
- export LD_LIBRARY_PATH=$TPARTY_HOME/local/lib:$LD_LIBRARY_PATH
- export CXX=g++-7
script:
- if [[ ! -d cmake_build ]]; then mkdir cmake_build; fi
- cd cmake_build
- /usr/local/bin/cmake -DRUN_TRAVIS=ON ..
- /usr/local/bin/cmake --build . --target tester
- ./tester --gtest_filter=*
after_success:
- curl -o codecov.sh https://codecov.io/bash
- chmod +x codecov.sh
- ./codecov.sh -t 6ec0cfc8-a00f-43c8-aab0-2754b9fba046
after_failure:
- cat /home/travis/build/osom8979/tbag/cmake_build/external/prefix/src/sfml_ext-stamp/sfml_ext-configure-*.log
notifications:
email:
on_success: always
on_failure: always