-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
37 lines (30 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
language: php
php:
- 5.6
- 7.0
- 7.1
# - hhvm
# faster builds on new travis setup not using sudo
sudo: false
env:
- DB_USERNAME=travis
# cache vendor dirs
cache:
directories:
- $HOME/.composer/cache
install:
- travis_retry composer self-update && composer --version
- travis_retry composer update --prefer-dist --no-interaction
# setup application:
- |
./init --env=Development
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
before_script:
- mysql -e 'CREATE DATABASE yarcode_test;'
- cp .env.travis .env
- php yii_test migrate --interactive=0
script:
- composer validate --strict
- vendor/bin/codecept run
- vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no