-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1004 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: cpp
matrix:
include:
- os: linux
dist: bionic
compiler:
- gcc
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
packages:
- g++-7
- gdb
- valgrind
branches:
only:
- master
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libgtest-dev valgrind cmake
- sudo wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz
- sudo tar xf release-1.7.0.tar.gz
- cd googletest-release-1.7.0
- sudo cmake -DBUILD_SHARED_LIBS=ON .
- sudo make
- sudo cp -a include/gtest /usr/include
- sudo cp -a libgtest_main.so libgtest.so /usr/lib/
- which valgrind
- cd "${TRAVIS_BUILD_DIR}"
before_script:
- cd test/
- cmake -Dtest=ON ../
- make
- ls -l
script: "./bambooslacking-test -v"
notifications:
recipients:
- notifications.recipient@gmail.com
email:
on_success: never
on_failure: change