forked from kenjis/ci-phpunit-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (33 loc) · 823 Bytes
/
.travis.yml
File metadata and controls
37 lines (33 loc) · 823 Bytes
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
language: php
matrix:
include:
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
before_script:
- pwd
- export cwd=`pwd`
- composer self-update
- cd ..
- pwd
- git clone https://github.com/kenjis/ci-app-for-ci-phpunit-test.git
- cd ci-app-for-ci-phpunit-test
- rm application/tests/_ci_phpunit_test
- composer update
- mv vendor/kenjis/ci-phpunit-test vendor/kenjis/ci-phpunit-test.tmp
- mv "$cwd" vendor/kenjis/ci-phpunit-test
- php install.php
- git checkout -- application/tests/Bootstrap.php
script:
- cd application/tests
- ../../vendor/bin/phpunit --coverage-text
after_script:
- cd ../..
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then php vendor/bin/coveralls -v; fi