-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.47 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
language: cpp
branches:
only:
- master
sudo: false
matrix:
include:
- dist: xenial
compiler: gcc-7
env: INSTALL_CXX=g++-7 INSTALL_CC=gcc-7
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'george-edison55-precise-backports']
packages: ['g++-7', 'lcov', 'cmake', 'cmake-data', 'doxygen', 'graphviz']
- os: osx
osx_image: xcode10.1
compiler: clang
env: INSTALL_CXX=clang++ INSTALL_CC=clang
install:
- brew install doxygen
before_install:
- gem install coveralls-lcov
script:
- mkdir -p build
- cd build
- CC=$INSTALL_CC CXX=$INSTALL_CXX cmake ../ -DBUILD_COVERAGE:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=ON
- make -j 4
- ./gals_cuda && ctest -R gals_unit_tests --output-on-failure
after_success:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null;
brew install lcov;
fi
- lcov --directory . --base-directory ../src --capture --no-external --output-file coverage.info
- genhtml coverage.info --output-directory ./docs/html/coverage
- lcov --remove coverage.info '/usr*' -o coverage.info
- coveralls-lcov coverage.info
deploy:
provider: pages
skip_cleanup: true
local_dir: ./build/docs/html
github_token: $GH_REPO_TOKEN
on:
branch: master
os: osx