-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (55 loc) · 1.93 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
php:
- 7.4
- 8.1
git:
depth: false
dist: xenial
env:
- TEST_GROUP=latest-integration
- TEST_GROUP=latest
- TEST_GROUP=two_three
- TEST_GROUP=two_four_one
jobs:
exclude:
- php: 8.1
env: TEST_GROUP=two_four_one
- php: 8.1
env: TEST_GROUP=two_three
- php: 7.4
env: TEST_GROUP=latest
- php: 7.4
env: TEST_GROUP=latest-integration
notifications:
email:
recipients:
on_success: change
on_failure: always
on_error: always
install:
- phpenv config-rm xdebug.ini || true
- if [ ! "$TRAVIS_PULL_REQUEST" = "false" ]; then git branch; git branch -D "$TRAVIS_BRANCH" || true; git checkout -b "$TRAVIS_BRANCH"; fi
- composer self-update --2
- cd test
- composer install --no-interaction
- composer require ampersand/travis-vanilla-magento:"dev-$TRAVIS_BRANCH" || composer require ampersand/travis-vanilla-magento $TRAVIS_BRANCH
script:
- if [[ $TEST_GROUP = two_three ]]; then NAME=$TEST_GROUP WITH_SAMPLE_DATA=1 VERSION=2.3.7-p2 . ./vendor/bin/travis-install-magento.sh; fi
- if [[ $TEST_GROUP = two_four_one ]]; then composer self-update --1; fi
- if [[ $TEST_GROUP = two_four_one ]]; then NAME=$TEST_GROUP FULL_INSTALL=0 VERSION=2.4.1 . ./vendor/bin/travis-install-magento.sh; fi
- if [[ $TEST_GROUP = latest ]]; then NAME=$TEST_GROUP WITH_SAMPLE_DATA=1 . ./vendor/bin/travis-install-magento.sh; fi
- if [[ $TEST_GROUP = latest-integration ]]; then NAME=$TEST_GROUP FULL_INSTALL=0 . ./vendor/bin/travis-install-magento.sh; fi
- echo "Travis Run Done"
addons:
apt:
packages:
- postfix
- apache2
- libapache2-mod-fastcgi
services:
- mysql
cache:
apt: true
directories:
- $HOME/.composer/cache