-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
47 lines (38 loc) · 935 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
38
39
40
41
42
43
44
45
46
47
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
language: php
php: 7.0
env:
global:
- CODE_COVERAGE=false
matrix:
- MAGENTO_VERSION=2.2.6
matrix:
include:
- php: 7.1
env: MAGENTO_VERSION=2.2.6 CODE_COVERAGE=true
before_script:
- composer self-update --1
- 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:
- grunt phpcs
- grunt lint
- grunt exec:ciTests
- if [ "$CODE_COVERAGE" = "false" ]; then php /tmp/magento2/bin/magento setup:di:compile; fi # Check for compilation errors
after_success:
- bash Test/Script/AfterSuccess.sh
cache:
directories:
- node_modules
- $HOME/.download_cache
- $HOME/.composer
- $HOME/.cache/composer