-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
67 lines (62 loc) · 1.65 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
language: php
sudo: required
# dist: trusty
php:
- 5.4
# - 5.5
- 5.6
- 7.0
- hhvm
- nightly
env:
- LIBSODIUM=false
- LIBSODIUM=1.0.1 LIBSODIUMPHP=0.1.3 #(depreciated version without namespaces)
# - LIBSODIUM=1.0.0 LIBSODIUMPHP=stable
- LIBSODIUM=stable LIBSODIUMPHP=stable
- LIBSODIUM=1.0.10 LIBSODIUMPHP=stable
- LIBSODIUM=nightly LIBSODIUMPHP=stable
before_script:
- phpenv config-add scripts/php.ini
- scripts/verifySignature.sh
- scripts/buildLibsodium.sh
- scripts/buildLibsodiumPhp.sh
script:
- scripts/checkLibsodium.sh
#- scripts/buildPhar.php # fails, see https://github.com/rugk/threema-msgapi-sdk-php/issues/54
- phpunit --bootstrap source/bootstrap.php source/Threema/MsgApi/Tests
addons:
apt:
# Use more recent version of git, which supports commit/tag verification
sources:
- sourceline: 'ppa:git-core/ppa'
packages:
- git
matrix:
exclude:
# HHVM cannot install PECL extensions and is therefore not compatible
# with libsodium
- php: hhvm
# libsodium-php <0.2.0 is not compatible with PHPv7
- php: 7.0
env: LIBSODIUM=1.0.1 LIBSODIUMPHP=0.1.3
- php: nightly
env: LIBSODIUM=1.0.1 LIBSODIUMPHP=0.1.3
# do not run so much tests for nightlies
- env: LIBSODIUM=nightly LIBSODIUMPHP=stable
php: 5.4
- env: LIBSODIUM=nightly LIBSODIUMPHP=stable
php: 5.5
- env: LIBSODIUM=nightly LIBSODIUMPHP=stable
php: 5.6
- php: nightly
env: LIBSODIUM=1.0.10 LIBSODIUMPHP=stable
include:
- php: hhvm
env: LIBSODIUM=false
allow_failures:
- php: nightly
- env: LIBSODIUM=nightly LIBSODIUMPHP=stable
notifications:
email:
on_success: change
on_failure: change