-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (34 loc) · 819 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
language: cpp
compiler: gcc
sudo: true
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- libgtest-dev
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libgtest-dev valgrind cmake clinfo
- 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 ..
install:
- sudo bash .travis/install.sh;
script:
- export CC=gcc-8
- export CXX=g++-8
- cd $TRAVIS_BUILD_DIR
- mkdir build
- cd build
- cmake -D BUILD_RELEASE:BOOL=false ..
- cmake --build .
- ./runUnitTests