-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (35 loc) · 1.32 KB
/
.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
language: php
php: 7.2
dist: trusty
env:
- TEST_GROUP=21
- TEST_GROUP=22
- TEST_GROUP=23
install:
- composer install
- cd dev
- if [[ $TEST_GROUP = 21 ]]; then phpenv global 7.1; fi
- if [[ $TEST_GROUP = 21 ]]; then ./setup-magento-with-diff.sh 2.1.0 2.1.18 $TEST_GROUP; fi
- if [[ $TEST_GROUP = 22 ]]; then phpenv global 7.1; fi
- if [[ $TEST_GROUP = 22 ]]; then ./setup-magento-with-diff.sh 2.2.0 2.2.10 $TEST_GROUP; fi
- if [[ $TEST_GROUP = 23 ]]; then ./setup-magento-with-diff.sh 2.3.0 2.3.3 $TEST_GROUP; fi
- cd -
script:
- vendor/bin/php-cs-fixer fix --dry-run src/
- vendor/bin/php-cs-fixer fix --dry-run dev/phpunit
- vendor/bin/php-cs-fixer fix --dry-run dev/TestModule
- vendor/bin/phpunit -c dev/phpunit/unit/phpunit.xml --verbose;
- if [[ $TEST_GROUP = 21 ]]; then vendor/bin/phpunit -c dev/phpunit/functional/phpunit.xml --exclude-group=v22,v23 --verbose; fi
- if [[ $TEST_GROUP = 22 ]]; then vendor/bin/phpunit -c dev/phpunit/functional/phpunit.xml --exclude-group=v21,v23 --verbose; fi
- if [[ $TEST_GROUP = 23 ]]; then vendor/bin/phpunit -c dev/phpunit/functional/phpunit.xml --exclude-group=v21,v22 --verbose; fi
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- postfix
cache:
apt: true
directories:
- $HOME/.composer/cache