Skip to content

Commit

Permalink
Update travis yml to be the same as other projects. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen authored and dannylamb committed Apr 4, 2017
1 parent 8df2117 commit f806607
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .travis.yml
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)

0 comments on commit f806607

Please sign in to comment.