forked from NeoRazorX/facturascripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 937 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
37
38
39
40
sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
- DB=postgres
install: travis_retry composer install --no-interaction --prefer-source
services:
- memcached
- postgresql
addons:
postgresql: "9.4"
before_script:
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS facturascripts;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'CREATE DATABASE facturascripts;' -U postgres; fi"
script:
# Run PHP-CS Beautifier and Fixer: to format some common non PSR code that can be auto-fixed.
- vendor/bin/phpcbf --tab-width=4 --encoding=utf-8 --standard=phpcs.xml Core -s
# Run PHP-CS.
- vendor/bin/phpcs --tab-width=4 --encoding=utf-8 --standard=phpcs.xml Core -s
# Run PHPUnit test.
- vendor/bin/phpunit --configuration phpunit.xml
matrix:
include:
- php: hhvm
dist: trusty
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true