forked from dektrium/yii2-user
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (28 loc) · 804 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
language: php
php:
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
# environment variable used in test suite
env: TEST_ENVIRONMENT=travis
dist: precise
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- vendor
- $HOME/.composer/cache
# install dependencies
install:
- travis_retry composer self-update
- travis_retry composer global require "codeception/codeception:2.2.5"
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0"
- travis_retry composer install --prefer-dist
before_script:
- mysql -e 'create database dektrium_test;'
- php tests/_app/yii.php migrate --migrationPath=@dektrium/user/migrations --interactive=0
- ~/.composer/vendor/bin/codecept build
script: ~/.composer/vendor/bin/codecept run