Skip to content

Commit e2cc191

Browse files
committed
Add travis configuration
1 parent 14cbd0b commit e2cc191

3 files changed

Lines changed: 321 additions & 184 deletions

File tree

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
env:
2+
global:
3+
- CC_TEST_REPORTER_ID=300652b345e59425b0203fd817ea93f39a436ef531b5731f0378b5ec3c755d33
4+
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
5+
language: php
6+
php:
7+
- '7.4'
8+
9+
before_script:
10+
- composer self-update
11+
- composer install --prefer-source --no-interaction --dev
12+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
13+
- chmod +x ./cc-test-reporter
14+
- ./cc-test-reporter before-build
15+
16+
script:
17+
- composer phpunit_clover
18+
- composer phpstan
19+
- composer psalm
20+
- composer phpcs
21+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT; fi
22+
23+
notifications:
24+
email: false

vendor-bin/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"phpunit/phpunit": "^8.4"
3+
"phpunit/phpunit": "^9.0"
44
}
55
}

0 commit comments

Comments
 (0)