-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy path.travis.yml
43 lines (32 loc) · 891 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
41
language: php
php:
- 5.6
- 7.0
- 7.1
global:
- CI=true
- CI_ENV=testing
# Recommended by Travis support
sudo: required
dist: precise
env:
- DB=mysqli
- DB=postgres
services:
- mysql
- postgresql
script:
- php vendor/bin/phpunit -v
before_install:
# - cp .env.example .env
# - if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi
- mysql -e "create database IF NOT EXISTS test;" -uroot;
- mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'test';" -uroot
- psql -c 'create database test;' -U postgres
#install: travis_retry composer install --no-interaction --no-scripts --prefer-source --no-suggest
before_script:
- composer install --prefer-source
- npm install -g gulp
- npm install -g bower
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- bower install -f