-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
61 lines (51 loc) · 1.94 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
php:
- 5.6
- 7.0
- 7.1
- 7.2
env:
global:
- TESTSUITE=unit
- CODE_COVERAGE=false
- TEST_RUNNER_OPTIONS=""
matrix:
- MAGENTO_VERSION=magento-mirror-1.9.4.0
matrix:
include:
- php: 7.2
env: MAGENTO_VERSION=magento-mirror-1.9.4.0 ENABLE_FLAT_CATALOG=true
- php: 7.0
env: MAGENTO_VERSION=magento-mirror-1.9.4.0 CODE_COVERAGE=true
- php: 7.0
env: MAGENTO_VERSION=magento-mirror-1.9.2.4
- php: 7.0
env: MAGENTO_VERSION=magento-mirror-1.8.1.0
- php: 7.0
env: MAGENTO_VERSION=magento-mirror-1.8.0.0
fast_finish: true
allow_failures:
- php: nightly
before_script:
- composer config -a -g http-basic.repo.magento.com $COMPOSER_MAGENTO_USERNAME $COMPOSER_MAGENTO_PASSWORD
- if [ "${CODE_COVERAGE}" = "false" ]; then phpenv config-rm xdebug.ini; fi
- if [ "${CODE_COVERAGE}" = "true" ]; then TEST_RUNNER_OPTIONS="${TEST_RUNNER_OPTIONS} --coverage-clover build/logs/clover.xml"; fi
- if find . -name "*.php" ! -path "./vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi
- export PATH=$PATH:$HOME/.composer/vendor/bin
- bash app/code/community/TIG/PostNL/Test/Scripts/InstallDependencies.sh
- bash app/code/community/TIG/PostNL/Test/Scripts/Setup.sh
script:
- vendor/bin/phpcs --runtime-set installed_paths vendor/magento/marketplace-eqp -p --standard=MEQP1 --severity=10 --ignore=*/vendor/*,*/app/code/community/TIG/PostNL/Test/*,*/app/code/community/TIG/PostNL/docs/*,*/app/code/community/TIG/PostNL/Model/ExtensionControl/Webservices.php .
- $HOME/.composer/vendor/bin/phpunit -c "/tmp/magento/public/app/code/community/TIG/PostNL/Test/phpunit.xml" --testsuite=$TESTSUITE ${TEST_RUNNER_OPTIONS}
cache:
directories:
- $HOME/.composer
after_success:
- bash app/code/community/TIG/PostNL/Test/Scripts/AfterSuccess.sh