-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 996 Bytes
/
.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
language: php
dist: trusty
php: 7.3
env:
global:
- COMPOSER_ROOT_VERSION="2.1.x-dev"
- DB=MYSQL
- SS_DATABASE_USERNAME="root"
- SS_DATABASE_PASSWORD=""
services: mysql
jobs:
include:
- env: CORE_RELEASE=4.6
- env: CORE_RELEASE=4.5
- env: CORE_RELEASE=4.4
- env: CORE_RELEASE=4.3
- env: CORE_RELEASE=4.2
- env: CORE_RELEASE=4.1
before_script:
- phpenv rehash
- composer validate
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- vendor/bin/phpunit vendor/level51/silverstripe-onesignal/tests/ --coverage-clover coverage.xml --configuration vendor/level51/silverstripe-onesignal/phpunit.xml.dist
after_success:
- cd vendor/level51/silverstripe-onesignal && wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover ../../../coverage.xml