-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy path.travis.yml
25 lines (21 loc) · 985 Bytes
/
.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
# Travis configuration for PalMA
# TODO:
# Need sudo/non-containerized infrastructure for apt-add-repository
sudo: true
before_install:
# Need backports for shellcheck
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe"
- sudo apt-get -qq update
# php-codesniffer is used for the PSR-2 conformance test.
# libperl-critic-perl is used for perl checks
# shellcheck checks shell code
- sudo apt-get install -y libperl-critic-perl php-sqlite3 php-codesniffer php-mbstring shellcheck
script:
# Errors from docs/dist/pre-commit.sh are currently ignored
# because there are too many coding violations in PHP code.
- docs/dist/pre-commit.sh . || echo "Ignore codesniffer errors"
# Errors from docs/dist/pre-push.sh are currently ignored
# because merge commits from github aren't signed
- docs/dist/pre-push.sh || echo "Ignore non-signed commits"
# Unit test the PHP scripts
- docs/dist/run-unittests.sh