-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update travis yml to be the same as other projects. (#62)
- Loading branch information
1 parent
8df2117
commit f806607
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,42 @@ | ||
sudo: true | ||
language: php | ||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
branches: | ||
only: | ||
- /master/ | ||
|
||
before_install: | ||
- export SCRIPT_DIR=$HOME/CLAW/.scripts | ||
|
||
install: | ||
- git clone https://github.com/Islandora-CLAW/CLAW.git $HOME/CLAW | ||
- $SCRIPT_DIR/travis_setup_php.sh | ||
- composer install | ||
|
||
script: | ||
- $SCRIPT_DIR/line_endings.sh $TRAVIS_BUILD_DIR | ||
- vendor/bin/phpcs --standard=PSR2 src | ||
- vendor/bin/phpcpd --names *.php src | ||
|
||
script: | ||
- php vendor/bin/phpunit | ||
- php vendor/bin/phpcs --standard=PSR2 src test | ||
- php vendor/bin/phpunit --verbose | ||
|
||
notifications: | ||
irc: "irc.freenode.org#islandora" | ||
irc: | ||
channels: | ||
- "irc.freenode.org#islandora" | ||
on_success: change | ||
on_failure: always | ||
skip_join: true | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |