Skip to content

Commit 8f88544

Browse files
committed
Modernize CI scripts
1 parent be548bf commit 8f88544

File tree

3 files changed

+114
-82
lines changed

3 files changed

+114
-82
lines changed

.appveyor.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: '{branch}-{build}'
2+
3+
branches:
4+
only:
5+
- master
6+
7+
os:
8+
- Visual Studio 2015
9+
10+
configuration:
11+
- Release
12+
- Debug
13+
14+
environment:
15+
matrix:
16+
- GENERATOR: Visual Studio 14 2015
17+
18+
- GENERATOR: Visual Studio 14 2015 Win64
19+
20+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
21+
GENERATOR: Visual Studio 15 2017
22+
23+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
24+
GENERATOR: Visual Studio 15 2017 Win64
25+
26+
- GENERATOR: MinGW Makefiles
27+
BINDIR: C:\MinGW\bin
28+
29+
- GENERATOR: MinGW Makefiles
30+
COMPILER: MinGW 5
31+
BINDIR: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
32+
33+
- GENERATOR: MinGW Makefiles
34+
COMPILER: MinGW 6
35+
BINDIR: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin
36+
37+
- GENERATOR: MinGW Makefiles
38+
COMPILER: MinGW 6
39+
BINDIR: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
40+
41+
init: []
42+
43+
install: []
44+
45+
before_build:
46+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets")
47+
- if defined BINDIR (set "PATH=%BINDIR%;%PATH:C:\Program Files\Git\usr\bin;=%")
48+
- md build
49+
- cd build
50+
- cmake -Wno-dev -DPEGTL_BUILD_EXAMPLES=OFF --config "%CONFIGURATION%" -G "%GENERATOR%" ..
51+
52+
build_script:
53+
- cmake --build . --config "%CONFIGURATION%"
54+
55+
test_script:
56+
- ctest -C "%CONFIGURATION%" --output-on-failure

.travis.yml

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,139 @@
1-
language: cpp
1+
language: generic
2+
os: linux
3+
dist: trusty
4+
5+
branches:
6+
only:
7+
- master
28

39
matrix:
410
include:
5-
- os: linux
11+
- dist: precise
612
compiler: gcc
713
addons:
814
apt:
915
sources: ['ubuntu-toolchain-r-test']
1016
packages: ['g++-4.7']
11-
env: COMPILER=g++-4.7
17+
env: CXX=g++-4.7
1218

13-
- os: linux
14-
compiler: gcc
15-
addons:
16-
apt:
17-
sources: ['ubuntu-toolchain-r-test']
18-
packages: ['g++-4.8']
19-
env: COMPILER=g++-4.8
19+
- compiler: gcc
20+
env: CXX=g++-4.8
2021

21-
- os: linux
22-
compiler: gcc
22+
- compiler: gcc
2323
addons:
2424
apt:
2525
sources: ['ubuntu-toolchain-r-test']
2626
packages: ['g++-4.9']
27-
env: COMPILER=g++-4.9
27+
env: CXX=g++-4.9
2828

29-
- os: linux
30-
compiler: gcc
29+
- compiler: gcc
3130
addons:
3231
apt:
3332
sources: ['ubuntu-toolchain-r-test']
3433
packages: ['g++-5']
35-
env: COMPILER=g++-5
34+
env: CXX=g++-5
3635

37-
- os: linux
38-
compiler: gcc
36+
- compiler: gcc
3937
addons:
4038
apt:
4139
sources: ['ubuntu-toolchain-r-test']
4240
packages: ['g++-6']
43-
env: COMPILER=g++-6
41+
env: CXX=g++-6
4442

45-
- os: linux
46-
compiler: clang
47-
env: COMPILER=clang++
43+
- compiler: gcc
44+
addons:
45+
apt:
46+
sources: ['ubuntu-toolchain-r-test']
47+
packages: ['g++-7']
48+
env: CXX=g++-7
4849

49-
- os: linux
50+
- dist: precise
5051
compiler: clang
52+
env: CXX=clang++
53+
54+
- compiler: clang
5155
addons:
5256
apt:
53-
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5']
57+
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.5']
5458
packages: ['clang-3.5']
55-
env: COMPILER=clang++-3.5
59+
env: CXX=clang++-3.5
5660

57-
- os: linux
58-
compiler: clang
61+
- compiler: clang
5962
addons:
6063
apt:
61-
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
64+
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.6']
6265
packages: ['clang-3.6']
63-
env: COMPILER=clang++-3.6
66+
env: CXX=clang++-3.6
6467

65-
- os: linux
68+
- dist: precise
6669
compiler: clang
6770
addons:
6871
apt:
6972
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
7073
packages: ['clang-3.7']
71-
env: COMPILER=clang++-3.7
74+
env: CXX=clang++-3.7
7275

73-
- os: linux
74-
compiler: clang
76+
- compiler: clang
7577
addons:
7678
apt:
77-
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
79+
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.8']
7880
packages: ['clang-3.8']
79-
env: COMPILER=clang++-3.8
81+
env: CXX=clang++-3.8
8082

81-
- os: linux
82-
dist: trusty
83-
compiler: clang
83+
- compiler: clang
8484
addons:
8585
apt:
8686
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.9']
8787
packages: ['clang-3.9']
8888
env:
89-
- COMPILER=clang++-3.9
89+
- CXX=clang++-3.9
9090

91-
- os: linux
92-
dist: trusty
93-
compiler: clang
91+
- compiler: clang
9492
addons:
9593
apt:
9694
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-4.0']
9795
packages: ['clang-4.0']
9896
env:
99-
- COMPILER=clang++-4.0
97+
- CXX=clang++-4.0
98+
99+
- compiler: clang
100+
addons:
101+
apt:
102+
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
103+
packages: ['clang-5.0']
104+
env:
105+
- CXX=clang++-5.0
100106

101107
- os: osx
102108
osx_image: xcode6.4
103109
compiler: clang
104110
env:
105-
- COMPILER=clang++
111+
- CXX=clang++
106112

107113
- os: osx
108114
osx_image: xcode7.3
109115
compiler: clang
110116
env:
111-
- COMPILER=clang++
117+
- CXX=clang++
112118

113119
- os: osx
114120
osx_image: xcode8.2
115121
compiler: clang
116122
env:
117-
- COMPILER=clang++
123+
- CXX=clang++
118124

119-
- os: linux
120-
compiler: gcc
125+
- compiler: gcc
121126
addons:
122127
apt:
123128
sources: ['ubuntu-toolchain-r-test']
124-
packages: ['g++-6']
129+
packages: ['g++-7']
125130
env:
126-
- COMPILER=g++-6
131+
- CXX=g++-7
127132
- CXXFLAGS="-O0 --coverage"
128133
before_script:
129-
- pip install --user urllib3[secure] cpp-coveralls
130-
# Work around https://github.com/eddyxu/cpp-coveralls/issues/108 by manually
131-
# installing the pyOpenSSL module and injecting it into urllib3 as per
132-
# https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
133-
- sed -i -e '/^import sys$/a import urllib3.contrib.pyopenssl\nurllib3.contrib.pyopenssl.inject_into_urllib3()' $(which coveralls)
134+
- pip install --user cpp-coveralls
134135
after_success:
135-
- coveralls --gcov gcov-6 --gcov-options '\-lp' --exclude src
136+
- coveralls --gcov gcov-7 --gcov-options '\-lp' --exclude src
136137

137138
script:
138-
make CXX=$COMPILER -j3
139+
make -j3

appveyor.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)