https://github.com/shaarli/Shaarli/releases/tag/v0.11.0
[pin4sha_cgi.git] / .travis.yml
blob61c184b761ee1d2491d5a0795ecf5f56758abaea
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.5
34   - GITHUB=shaarli/Shaarli/archive/v0.9.5
35   - GITHUB=shaarli/Shaarli/archive/v0.10.3
36   - GITHUB=shaarli/Shaarli/archive/v0.11.0
37   - GITHUB=shaarli/Shaarli/archive/master
38   - GITHUB=shaarli/Shaarli/archive/stable
39   - GITHUB=shaarli/Shaarli/archive/webdesign
40 matrix:
41   allow_failures:
42   - php: 5.4
43   # first community release is known to fail, too:
44   - env: GITHUB=shaarli/Shaarli/archive/v0.0.40beta
45   # why does this one fail?
46   - env: GITHUB=shaarli/Shaarli/archive/v0.0.42beta
47   - env: GITHUB=shaarli/Shaarli/archive/v0.5.4
48   - env: GITHUB=shaarli/Shaarli/archive/v0.6.4
49   - env: GITHUB=shaarli/Shaarli/archive/webdesign
50   - php: 5.5
51     env: GITHUB=shaarli/Shaarli/archive/v0.10.3
52   - php: 5.5
53     env: GITHUB=shaarli/Shaarli/archive/v0.11.0
54   - php: 5.5
55     env: GITHUB=shaarli/Shaarli/archive/master
56   - php: 5.5
57     env: GITHUB=shaarli/Shaarli/archive/stable
58 before_install:
59 - sh scripts/download.sh
60 - go get github.com/yhat/scrape
61 - go get golang.org/x/net/html
62 - go get golang.org/x/net/html/atom
63   # for testing only:
64 - go get github.com/stretchr/testify
65 - go vet -x
66 - go test -v
67 install:
68 - go build -ldflags "-s -w -X main.GitSHA1=$(git rev-parse --short HEAD)" -o pinboard.cgi
69 addons:
70   apt:
71     packages:
72     - xsltproc
73     - libxml2-utils
74 #before_script:
75 #  # http://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
76 script:
77 - sh scripts/run-tests.sh