forked from postnl/postnl-magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.2 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
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
language: php
env:
global:
- CODE_COVERAGE=false
- DI_COMPILE=false
matrix:
# PHP 7.1 is only supported in Magento 2.2.x
# PHP 7.2 is only supported in Magento 2.3.2
# PHP 7.3 is only supported in Magento 2.3.3
include:
- php: 7.1
env: MAGENTO_VERSION=2.2.9
- php: 7.2
env: MAGENTO_VERSION=2.2.10
- php: 7.2
env: MAGENTO_VERSION=2.3.2 # DI_COMPILE=true
- php: 7.3
env: MAGENTO_VERSION=2.3.3 CODE_COVERAGE=true
before_script:
- export PATH=$PATH:$HOME/.composer/vendor/bin
- composer config -a -g http-basic.repo.magento.com $MAGENTO_USERNAME $MAGENTO_PASSWORD
- bash Test/Script/ManageDependencies.sh
- bash Test/Script/Setup.sh
script:
- if [ $CODE_COVERAGE == false ] && [ $DI_COMPILE == true ]; then php /tmp/magento2/bin/magento setup:di:compile; fi # Check for compilation errors
- grunt phpcs
- grunt lint
- grunt exec:phraseTest
- grunt exec:ciTests
after_success:
- bash Test/Script/AfterSuccess.sh
cache:
directories:
- node_modules
- $HOME/.download_cache
- $HOME/.composer
- $HOME/.cache/composer