-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (40 loc) · 1.71 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"
matrix:
fast_finish: true
include:
- php: 7.2
env:
- DEPS=latest
before_install:
- mysql -u travis --password="" < module/Application/data/travis.sql
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- cp config/autoload/global.php.dist config/autoload/global.php
- cp config/autoload/local.php.dist config/autoload/local.php
- mysql -u travis --password="" "travis" < module/Application/data/structure.sql
- mysql -u travis --password="" "travis" < vendor/oneplace/oneplace-user/data/structure.sql
- mysql -u travis --password="" "travis" < vendor/oneplace/oneplace-user/data/data.sql
- mysql -u travis --password="" "travis" < module/Application/data/bootstrap.sql
- mysql -u travis --password="" "travis" < module/Application/data/data.sql
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show
script:
- composer test-coverage
- vendor/bin/phpunit --coverage-clover=coverage.xml
after_script:
- bash <(curl -s https://codecov.io/bash)
services:
- mysql
notifications:
email: false