-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 968 Bytes
/
.travis.yml
File metadata and controls
29 lines (24 loc) · 968 Bytes
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
language: php
php:
- 7.2
branches:
only:
- master
- development
- "/^issue\\/.+$/"
before_script:
- git fetch
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git checkout "$TRAVIS_BRANCH"; else git checkout -b "$TRAVIS_PULL_REQUEST_BRANCH"; fi
- git reset --hard "$TRAVIS_COMMIT"
- composer self-update
- mkdir -p vendor/bin
- mkdir -p build/logs
- composer install -o --prefer-dist --no-interaction
- nohup php -S 127.0.0.1:8017 -t ./public/2017/ > build/logs/webserver.2017.log 2>&1 &
- nohup php -S 127.0.0.1:8018 -t ./public/2018/ > build/logs/webserver.2018.log 2>&1 &
script:
- php vendor/bin/spg.phar check:links -g -b "http://127.0.0.1:8017" ./Project2017.json
- php vendor/bin/spg.phar check:links -g -b "http://127.0.0.1:8018" ./Project2018.json
- php -dxdebug.coverage_enable=1 vendor/bin/phpunit.phar -c build/ --coverage-clover build/logs/clover.xml tests/
after_success:
- travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt