forked from koseven/koseven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·31 lines (26 loc) · 1.06 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
dist: trusty
language: php
# list any PHP version you want to test against
php:
# aliased to a recent 5.6.x version
# - 5.6 PHPUnit 6.0 is supported on PHP 7.0 and PHP 7.1.
# aliased to a recent 7.0 version
- 7.0
# # aliased to a recent 7.1 version
- 7.1
before_install:
# Update phpunit
- sudo rm -r $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit
- wget https://phar.phpunit.de/phpunit.phar
- sudo mkdir $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit
- sudo mv phpunit.phar $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit
- sudo chmod +x $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- sudo chmod -R 755 modules/ application/ system/
script:
# - set -e # don't stop on failure
- php $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/bin/phpunit/phpunit.phar --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
# configure notifications (email, IRC, campfire etc)
notifications:
email: false