another release
[pin4sha_cgi.git] / .travis.yml
blobb0284ebf6b69870c98a866e3f3ac1f8d4009ff4b
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.6
10 - 7.0
11 - 7.3
12 # http://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle
13 # http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
14 env:
15   global:
16   - GITHUB_SRC_SUBDIR=Shaarli-*
17   - BASE_URL=http://127.0.0.1:8000
18   - USERNAME=tast
19   - PASSWORD=tust
20   matrix:
21   - GITHUB=sebsauvage/Shaarli/archive/master
22   - GITHUB=shaarli/Shaarli/archive/v0.0.40beta
23   - GITHUB=shaarli/Shaarli/archive/v0.0.41beta
24   - GITHUB=shaarli/Shaarli/archive/v0.0.42beta
25 #  - GITHUB=shaarli/Shaarli/archive/v0.0.43beta
26 #  - GITHUB=shaarli/Shaarli/archive/v0.0.44beta
27   - GITHUB=shaarli/Shaarli/archive/v0.0.45beta
28   - GITHUB=shaarli/Shaarli/archive/v0.5.4
29   - GITHUB=shaarli/Shaarli/archive/v0.6.4
30   - GITHUB=shaarli/Shaarli/archive/v0.6.5
31   - GITHUB=shaarli/Shaarli/archive/v0.7.0
32   - GITHUB=shaarli/Shaarli/archive/v0.8.5
33   - GITHUB=shaarli/Shaarli/archive/v0.9.5
34   - GITHUB=shaarli/Shaarli/archive/v0.10.3
35   - GITHUB=shaarli/Shaarli/archive/v0.11.1
36   - GITHUB=shaarli/Shaarli/archive/master
37   - GITHUB=shaarli/Shaarli/archive/stable
38   - GITHUB=shaarli/Shaarli/archive/webdesign
39 matrix:
40   allow_failures:
41   # first community release is known to fail, too:
42   - env: GITHUB=shaarli/Shaarli/archive/v0.0.40beta
43   # why does this one fail?
44   - env: GITHUB=shaarli/Shaarli/archive/v0.0.42beta
45   - env: GITHUB=shaarli/Shaarli/archive/v0.5.4
46   - env: GITHUB=shaarli/Shaarli/archive/v0.6.4
47   - env: GITHUB=shaarli/Shaarli/archive/webdesign
48 before_install:
49 - sh scripts/download.sh
50 - go get github.com/yhat/scrape
51 - go get golang.org/x/net/html
52 - go get golang.org/x/net/html/atom
53   # for testing only:
54 - go get github.com/stretchr/testify
55 - go vet -x
56 - go test -v
57 install:
58 - go build -ldflags "-s -w -X main.GitSHA1=$(git rev-parse --short HEAD)" -o pinboard.cgi
59 addons:
60   apt:
61     packages:
62     - xsltproc
63     - libxml2-utils
64 #before_script:
65 #  # http://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
66 script:
67 - sh scripts/run-tests.sh