make PHP 5.4 optional
[pin4sha_cgi.git] / .travis.yml
blob4d2cfa40772bc1ad79831c1673e832e8aedd32ff
1 ---
2 # http://docs.travis-ci.com/user/migrating-from-legacy/
3 sudo: false
4 branches:
5   only: [master, develop]
6 # http://docs.travis-ci.com/user/languages/php/#Choosing-PHP-versions-to-test-against
7 language: php
8 php:
9 - 5.4
10 - 5.5
11 - 5.6
12 - 7.0
13 # http://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle
14 # http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
15 env:
16   global:
17   - GITHUB_SRC_SUBDIR=Shaarli-*
18   - BASE_URL=http://127.0.0.1:8000
19   - USERNAME=tast
20   - PASSWORD=tust
21   matrix:
22   - GITHUB=sebsauvage/Shaarli/archive/master
23   - GITHUB=shaarli/Shaarli/archive/v0.0.40beta
24   - GITHUB=shaarli/Shaarli/archive/v0.0.41beta
25   - GITHUB=shaarli/Shaarli/archive/v0.0.42beta
26 #  - GITHUB=shaarli/Shaarli/archive/v0.0.43beta
27 #  - GITHUB=shaarli/Shaarli/archive/v0.0.44beta
28   - GITHUB=shaarli/Shaarli/archive/v0.0.45beta
29   - GITHUB=shaarli/Shaarli/archive/v0.5.4
30   - GITHUB=shaarli/Shaarli/archive/v0.6.4
31   - GITHUB=shaarli/Shaarli/archive/v0.6.5
32   - GITHUB=shaarli/Shaarli/archive/v0.7.0
33   - GITHUB=shaarli/Shaarli/archive/v0.8.0
34   - GITHUB=shaarli/Shaarli/archive/master
35   - GITHUB=shaarli/Shaarli/archive/stable
36   - GITHUB=shaarli/Shaarli/archive/webdesign
37 matrix:
38   allow_failures:
39   - php: 5.4
40   # first community release is known to fail, too:
41   - env: GITHUB=shaarli/Shaarli/archive/v0.0.40beta
42   # why does this one fail?
43   - env: GITHUB=shaarli/Shaarli/archive/v0.0.42beta
44   - env: GITHUB=shaarli/Shaarli/archive/v0.5.4
45   - env: GITHUB=shaarli/Shaarli/archive/v0.6.4
46   - env: GITHUB=shaarli/Shaarli/archive/webdesign
47 before_install:
48 - sh scripts/download.sh
49 addons:
50   apt:
51     packages:
52     - xsltproc
53 #before_script:
54 #  # http://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
55 script:
56 - sh scripts/run-tests.sh