-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
76 lines (70 loc) · 1.5 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
65
66
67
68
69
70
71
72
73
74
75
76
language: c++
sudo: required
branches:
only:
- master
jobs:
include:
- os: linux
dist: bionic
compiler: gcc
name: "Linux Bionic"
env:
- CC=gcc-9
- CXX=g++-9
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-9
- g++-9
- cmake
- libboost-all-dev
- libcfitsio-dev
- os: osx
osx_image: xcode11.3
language: shell
name: "macOS 10.14"
addons:
homebrew:
packages:
- cmake
- libomp
- cfitsio
- boost
update: true
- stage: deploy
before_install: skip
install: skip
script: doxygen docs/Doxyfile
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/html
github_token: $GH_REPO_TOKEN
on:
branch: master
addons:
apt:
packages:
- doxygen
before_install:
- if [ $TRAVIS_OS_NAME = 'linux' ];
then pip install --user cpp-coveralls;
fi
- mkdir build
- cd build
install:
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- make
- if [ $TRAVIS_OS_NAME = 'osx' ];
then make install;
else sudo make install;
fi
script:
- make test
after_success:
- if [ $TRAVIS_OS_NAME = 'linux' ];
then coveralls --root .. --gcov gcov-9 --exclude build/CMakeFiles --exclude sfof/tests;
fi