This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
39 lines (30 loc) · 1.62 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
# Config file for travis-ci.org
language: php
php:
- "7.0"
# As there are no functionality tests and we basically run only PHP_CodeSniffer,
# one run (with one version) suffices.
# - "5.5"
# - "5.4"
# - "5.3"
env:
- DOKUWIKI=master
# - DOKUWIKI=stable
before_install: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
install:
- sh travis.sh
- cd lib/plugins/icalevents && composer install --no-interaction && cd ../../..
before_script:
# Get latest release of PHPCompatibility
- git clone -b master https://github.com/wimg/PHPCompatibility.git /tmp/phpcs-extra/PHPCompatibility
- cd /tmp/phpcs-extra/PHPCompatibility
- git checkout $(git describe --tags `git rev-list --tags --max-count=1`) # Checkout latest tag
- cd $TRAVIS_BUILD_DIR
- lib/plugins/icalevents/vendor/bin/phpcs --config-set installed_paths /tmp/phpcs-extra/PHPCompatibility
# A time zone without daylight saving time for simplified testing (UTC+09:00)
- echo 'date.timezone = "Asia/Tokyo"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
script:
- cd _test && phpunit --stderr --group plugin_icalevents && cd ..
# Ignore SplitTest.php. It's a false positive; PHPCompatibility does not understand namespaces.
- cd $TRAVIS_BUILD_DIR/lib/plugins/icalevents && ./vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 5.5-7.0 --ignore=_test/,vendor/squizlabs/php_codesniffer/,vendor/sabre/uri/tests/SplitTest.php .
- cd $TRAVIS_BUILD_DIR/lib/plugins/icalevents && ./vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 5.3-5.4 --ignore=_test/,syntax-impl.php,vendor/ .