Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update travis yml to be the same as other projects. #62

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)