forked from boost-ext/sml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
137 lines (114 loc) · 5.14 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#
# Copyright (c) 2016-2018 Kris Jusiak (kris at jusiak dot net)
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
env:
global:
- secure: "EvH8i0jc2gC5HzTPezTeS8fMkt/80ZJPsPrAkxL5uOEkATXDnfx8rYHNFadbznBfhwJiLsdxupycHqSpsqgWafT4DvKhSUsS0X126aPSOSe27sbHwnYeNPbjODJA0Y2tQoqk+u0cyisYbYjzVf5lmkAdQT6MBwEH/WO4LsmydMsZUfY56nuUdLGD9AmwDeYFMHkj1tKxBjiuL7oSukvOrvKXwRbXiHLBcrOCEpMxt67xyZm4mQtDDmgkd0bq54jJpFbob6dd8NoIpqVf9s0mSZC6kIZFBGzUuc6d/ox5XhFpqJYcwa04ol66rER5raIcV8sEBQLTX0vyuXhiI12gkct6PfA3w19aVc/PZRGPGQhbvP8EejGs2Hmav9WNmTU9KfAOBpRn1kJq+CIKwtO/LoYe2dGNR7Blvb+NVRqjLuVVUv5fOreJ+5f/udEp+7wmcgm0GFjbI13TIsZZ1ZXK7/nb0Hp2AgxH9rpiNljYIIY1rTKovNZUGAaXFRCCOVvU1cZY0PAd19LO089lBMPMByNugMjdE9xi46SogPxgiwSNSOfKwa/09/fMa6KteoDWiAwSS2fV1ASOi6QvmFO/fs9cGnA/yxLAMxBT/2ACX86InnGnT0Ng7pntwXgCTaihTkF88CBlKQQoyFT3iIf37f4gUp6bIA1QR7MlQaO/RKs=" # GH_TOKEN
git:
depth: 1
sudo: false
branches:
except:
- gh-pages
- benchmarks
matrix:
fast_finish: true
include:
#
# Documentation
#
- os: linux
env: DOCUMENTATION=ON
#
# Style
#
- os: linux
dist: precise
env: CHECK=ON CLANG_FORMAT=clang-format-4.0 CLANG_TIDY=clang-tidy-4.0
addons: { apt: { packages: ["clang-format-4.0", "clang-tidy-4.0", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0"] } }
#
# Build
#
- os: linux
env: CXX=clang++-3.7 MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-3.7", "libstdc++-5-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-precise-3.7"] } }
- os: linux
dist: precise
env: CXX=clang++-3.8 MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-3.8", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-precise-3.8"] } }
- os: linux
dist: precise
env: CXX=clang++-3.9 MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-3.9", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-precise-3.9"] } }
- os: linux
dist: precise
env: CXX=clang++-4.0 MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-4.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0"] } }
- os: linux
dist: precise
env: CXX=clang++-4.0 LIBCXX=ON MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-4.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0"] } }
- os: linux
dist: precise
env: CXX=clang++-4.0 CXXSTD=c++1z LIBCXX=ON MEMCHECK=VALGRIND
addons: { apt: { packages: ["clang-4.0", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-4.0"] } }
- os: linux
dist: precise
env: CXX=g++-5 MEMCHECK=VALGRIND
addons: { apt: { packages: ["g++-5", "libstdc++-5-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test"] } }
- os: linux
dist: precise
env: CXX=g++-6 MEMCHECK=VALGRIND
addons: { apt: { packages: ["g++-6", "libstdc++-6-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test"] } }
- os: linux
dist: trusty
env: CXX=g++-7 MEMCHECK=VALGRIND
addons: { apt: { packages: ["g++-7", "libstdc++-7-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test"] } }
- os: linux
dist: trusty
env: CXX=g++-7 CXXSTD=c++1z MEMCHECK=VALGRIND
addons: { apt: { packages: ["g++-7", "libstdc++-7-dev", "valgrind"], sources: ["ubuntu-toolchain-r-test"] } }
- os: osx
osx_image: xcode7.3
env: CXX=clang++
- os: osx
osx_image: xcode8.3
env: CXX=clang++
- os: osx
osx_image: xcode9.1
env: CXX=clang++
#
# Coverage
#
- os: linux
dist: trusty
env: COVERAGE=GCOV CXX=g++-7
addons: { apt: { packages: ["g++-7", "libstdc++-7-dev"], sources: ["ubuntu-toolchain-r-test"] } }
before_install:
- git config --global user.name "Continuous Integration"
- git config --global user.email "[email protected]"
- git config --global push.default simple
script:
- if [ "${CXX}" != "" ] && [ "${COVERAGE}" == "" ]; then (travis_wait make test example); fi
- if [ "${CXX}" != "" ] && [ "${COVERAGE}" != "" ]; then (travis_wait make test); fi
- if [ "${CHECK}" != "" ]; then (travis_wait make check); fi
- if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ "${DOCUMENTATION}" != "" ]; then (
pip install tornado==4.5.3 https://github.com/mkdocs/mkdocs/archive/b30f38fe299738e8ce614e53c3342cc8bef02b5b.zip -U --user
&& git clone https://github.com/boost-experimental/sml && cd sml && rm -rf *
&& git checkout -b gh-pages -t origin/gh-pages && git reset --hard && cd ..
&& MKDOCS_THEME=boost-experimental MKDOCS_SITE=../sml make doc
&& MKDOCS_THEME=boost-classic MKDOCS_SITE=../sml/boost make doc readme
&& cd sml && git add -A . && git commit -am "doc update"
&& git push --force --quiet "https://${GH_TOKEN}@github.com/boost-experimental/sml.git"); fi
after_success:
- if [ "${COVERAGE}" != "" ]; then (bash <(curl -s https://codecov.io/bash)); fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/860de502083214ed3d28
on_success: change
on_failure: always
on_start: false