-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (42 loc) · 2.07 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
language: php
dist: trusty
os: linux
cache:
directories:
- $HOME/.composer/cache/files
jobs:
fast_finish: true
include:
- name: PHP 7.0 with Magento 2.2.0
php: 7.0
env: MAGENTO_VERSION=2.2.0 MAGE_MODE=default
- name: PHP 7.2 with Magento 2.2.11
php: 7.2
env: MAGENTO_VERSION=2.2.11 MAGE_MODE=production
- name: PHP 7.1 with Magento 2.3.1
php: 7.1
env: MAGENTO_VERSION=2.3.1 MAGE_MODE=developer
- name: PHP 7.3 with Magento 2.3.4
php: 7.3
env: MAGENTO_VERSION=2.3.4 MAGE_MODE=production
services: mysql
before_install:
- composer --verbose self-update
- composer --version
before_script:
- mysql -e 'create database extdn_installer_db'
script:
# Run automated tests.
- composer create-project --repository=https://repo-magento-mirror.fooman.co.nz/ magento/project-community-edition=$MAGENTO_VERSION m2-folder --no-install --no-interaction
- cd m2-folder
- composer config --unset repo.0
- composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/
- composer install --prefer-dist
- php -f bin/magento setup:install --db-host=localhost --db-user=root --db-name=extdn_installer_db --admin-user=admin --admin-password=admin123 --admin-email="[email protected]" --admin-firstname=Test --admin-lastname=Admin --backend-frontname=admin
- if [ $MAGE_MODE != "default" ]; then php -f bin/magento deploy:mode:set $MAGE_MODE; fi
# test a oneliner installation from packagist
- sh -ic "$(curl -sS https://raw.githubusercontent.com/extdn/installer-m2/$TRAVIS_BRANCH/bin/oneliner.sh)" -- --no-interaction install fooman/printorderpdf-m2:^3.0
# test a oneliner installation from github
- composer config use-github-api false
- sh -ic "$(curl -sS https://raw.githubusercontent.com/extdn/installer-m2/$TRAVIS_BRANCH/bin/oneliner.sh)" -- --template=github --repo-url=https://github.com/fooman/emailattachments-m2.git --no-interaction install fooman/emailattachments-m2:^3.0
- sh -ic "$(curl -sS https://raw.githubusercontent.com/extdn/installer-m2/$TRAVIS_BRANCH/bin/oneliner.sh)" -- --version