-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
111 lines (96 loc) · 3.94 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# only build pull requests and merges to master or dev
# adapted from https://stackoverflow.com/a/31882307
if: (type = push AND branch IN (master, dev)) OR (type = pull_request AND NOT branch =~ /no-ci/)
dist: xenial
sudo: required
services:
- docker
jobs:
include:
- stage: Tests
name: Unit Tests (clang, debug mode)
env: CXX=clang++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make"
name: Unit Tests (gcc, debug mode)
env: CXX=g++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make"
- name: Unit Tests (clang, full debug mode)
env: CXX=clang++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make fulldebug"
- name: Unit Tests (gcc, full debug mode)
env: CXX=g++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make fulldebug"
- name: Unit Tests (clang, opt mode)
env: CXX=clang++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make opt"
- name: Unit Tests (gcc, opt mode)
env: CXX=g++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN -e CXX -i devosoft/empirical-joss-demo /bin/bash -c "set -x && cd /opt/empirical-joss-demo/tests && make opt"
- name: Coverage
env: CXX=clang++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- sudo docker run $ci_env -e CXX devosoft/empirical-joss-demo /bin/bash -c "cd /opt/empirical-joss-demo && make coverage && bash <(curl -s https://codecov.io/bash)"
- name: Source (clang)
env: CXX=clang++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN devosoft/empirical-joss-demo /bin/bash -c "cd /opt/empirical-joss-demo && make test"
- name: Source (gcc)
env: CXX=g++
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run -e CXX --cap-add=SYS_ADMIN devosoft/empirical-joss-demo /bin/bash -c "cd /opt/empirical-joss-demo && make test"
- name: Docs
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- sudo docker run devosoft/empirical-joss-demo /bin/bash -c "cd /opt/empirical-joss-demo && make docs"
- stage: Deploy
name: GitHub Pages
if: (type = push AND branch IN (master))
install:
- docker build -t devosoft/empirical-joss-demo .
- docker ps -a
script:
- docker run -e GH_TOKEN -e TRAVIS_BUILD_NUMBER devosoft/empirical-joss-demo /bin/bash -c "cd /opt/empirical-joss-demo && source third-party/emsdk/emsdk_env.sh && make web && make badges && ./ci/deploy_gh_pages.sh"
# - name: DockerHub
# if: (type = push AND branch IN (master))
# install:
# - docker build -t devosoft/empirical-joss-demo .
# - docker ps -a
# script:
# - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# - docker push devosoft/empirical-joss-demo