forked from CopernicaMarketingSoftware/PHP-CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 1.45 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
# Although this is a C++ project, we use different PHP versions
language: php
# we need bionic
dist: trusty
sudo: required
group: edge
php:
- 7.0
- 7.1
- 7.2
- nightly # doesn't work yet on PHP 7.3! not building.
# setting the env is the easiest, because it will mix with all the separate php versions (travis does this)
env:
- COMPILER_PKG=g++-4.8 COMPILER=g++-4.8
- COMPILER_PKG=g++-4.9 COMPILER=g++-4.9
- COMPILER_PKG=g++-5 COMPILER=g++-5
- COMPILER_PKG=g++-6 COMPILER=g++-6
- COMPILER_PKG=g++-7 COMPILER=g++-7
- COMPILER_PKG=g++-8 COMPILER=g++-8
- COMPILER_PKG=clang++-4 COMPILER=clang++-4.0
- COMPILER_PKG=clang++-5 COMPILER=clang++-5.0
- COMPILER_PKG=clang++-6 COMPILER=clang++-6.0
matrix:
allow_failures:
- php: nightly
before_install:
# install access to all gcc compilers
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# and all relevant clang compilers
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main"
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main"
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main"
# update package index and install correct compiler
- sudo apt-get -y update
- sudo apt-get -y --allow-unauthenticated --no-install-recommends install ${COMPILER_PKG}
script:
# simply make the project with the set compiler
- make -j4 COMPILER=$COMPILER && sudo make install