-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (27 loc) · 884 Bytes
/
.travis.yml
File metadata and controls
35 lines (27 loc) · 884 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
language: php
env:
global:
- DRIVER_VERSION=1.5.3
- CC_TEST_REPORTER_ID=f4e155d66ed4faf2b999d7d080dfb69bcf6d8c6b3da2378a1100230466d8d4a6
sudo: true
services:
- mongodb
php:
- 7.2
- 7.3
before_install:
- composer self-update
- mongo test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
- pecl install -f mongodb-${DRIVER_VERSION}
- composer install --no-interaction --no-progress --no-suggest
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --coverage-clover=clover.xml
- vendor/bin/phpcs --standard=PSR12 --warning-severity=0 src
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
cache:
directories:
- $HOME/.composer/cache