1
0
Fork 0
mirror of synced 2025-04-05 06:03:37 +03:00

Update travis config

This commit is contained in:
Akolzin Dmitry 2020-04-06 16:36:01 +03:00 committed by gorokh
parent 7b6523262d
commit 95e765d01e
3 changed files with 224 additions and 197 deletions

View file

@ -1,6 +1,8 @@
os: linux
dist: trusty
language: php
sudo: false
if: tag IS blank
env:
global:
@ -13,244 +15,270 @@ env:
- ADMIN_USER=admin
- ADMIN_PASS=admin123
matrix:
stages:
- test
jobs:
include:
- php: 7.0
env: BRANCH=2.0.2
- php: 5.6
env: BRANCH=2.0.2
- php: 7.0
env: BRANCH=2.0.2
- php: 7.0
env: BRANCH=2.0.4
- php: 5.6
env: BRANCH=2.0.4
- php: 7.0
env: BRANCH=2.0.4
- php: 7.0
env: BRANCH=2.0.5
- php: 5.6
env: BRANCH=2.0.5
- php: 7.0
env: BRANCH=2.0.5
- php: 7.0
env: BRANCH=2.0.6
- php: 5.6
env: BRANCH=2.0.6
- php: 7.0
env: BRANCH=2.0.6
- php: 7.0
env: BRANCH=2.0.7
- php: 5.6
env: BRANCH=2.0.7
- php: 7.0
env: BRANCH=2.0.7
- php: 7.0
env: BRANCH=2.0.8
- php: 5.6
env: BRANCH=2.0.8
- php: 7.0
env: BRANCH=2.0.8
- php: 7.0
env: BRANCH=2.0.9
- php: 5.6
env: BRANCH=2.0.9
- php: 7.0
env: BRANCH=2.0.9
- php: 7.0
env: BRANCH=2.0.10
- php: 5.6
env: BRANCH=2.0.10
- php: 7.0
env: BRANCH=2.0.10
- php: 7.0
env: BRANCH=2.0.11
- php: 5.6
env: BRANCH=2.0.11
- php: 7.0
env: BRANCH=2.0.11
- php: 7.0
env: BRANCH=2.0.12
- php: 5.6
env: BRANCH=2.0.12
- php: 7.0
env: BRANCH=2.0.12
- php: 7.0
env: BRANCH=2.0.13
- php: 5.6
env: BRANCH=2.0.13
- php: 7.0
env: BRANCH=2.0.13
- php: 7.0
env: BRANCH=2.0.14
- php: 5.6
env: BRANCH=2.0.14
- php: 7.0
env: BRANCH=2.0.14
- php: 7.0
env: BRANCH=2.0.15
- php: 5.6
env: BRANCH=2.0.15
- php: 7.0
env: BRANCH=2.0.15
- php: 7.0
env: BRANCH=2.0.16
- php: 5.6
env: BRANCH=2.0.16
- php: 7.0
env: BRANCH=2.0.16
- php: 7.0
env: BRANCH=2.0.17
- php: 5.6
env: BRANCH=2.0.17
- php: 7.0
env: BRANCH=2.0.17
- php: 7.0
env: BRANCH=2.0.18
- php: 5.6
env: BRANCH=2.0.18
- php: 7.0
env: BRANCH=2.0.18
- php: 7.0
env: BRANCH=2.1.0
- php: 7.1
env: BRANCH=2.1.0
- php: 7.0
env: BRANCH=2.1.0
- php: 7.1
env: BRANCH=2.1.0
- php: 7.0
env: BRANCH=2.1.1
- php: 7.1
env: BRANCH=2.1.1
- php: 7.0
env: BRANCH=2.1.1
- php: 7.1
env: BRANCH=2.1.1
- php: 7.0
env: BRANCH=2.1.2
- php: 7.1
env: BRANCH=2.1.2
- php: 7.0
env: BRANCH=2.1.2
- php: 7.1
env: BRANCH=2.1.2
- php: 7.0
env: BRANCH=2.1.3
- php: 7.1
env: BRANCH=2.1.3
- php: 7.0
env: BRANCH=2.1.3
- php: 7.1
env: BRANCH=2.1.3
- php: 7.0
env: BRANCH=2.1.4
- php: 7.1
env: BRANCH=2.1.4
- php: 7.0
env: BRANCH=2.1.4
- php: 7.1
env: BRANCH=2.1.4
- php: 7.0
env: BRANCH=2.1.5
- php: 7.1
env: BRANCH=2.1.5
- php: 7.0
env: BRANCH=2.1.5
- php: 7.1
env: BRANCH=2.1.5
- php: 7.0
env: BRANCH=2.1.6
- php: 7.1
env: BRANCH=2.1.6
- php: 7.0
env: BRANCH=2.1.6
- php: 7.1
env: BRANCH=2.1.6
- php: 7.0
env: BRANCH=2.1.7
- php: 7.1
env: BRANCH=2.1.7
- php: 7.0
env: BRANCH=2.1.7
- php: 7.1
env: BRANCH=2.1.7
- php: 7.0
env: BRANCH=2.1.8
- php: 7.1
env: BRANCH=2.1.8
- php: 7.0
env: BRANCH=2.1.8
- php: 7.1
env: BRANCH=2.1.8
- php: 7.0
env: BRANCH=2.1.9
- php: 7.1
env: BRANCH=2.1.9
- php: 7.0
env: BRANCH=2.1.9
- php: 7.1
env: BRANCH=2.1.9
- php: 7.0
env: BRANCH=2.1.10
- php: 7.1
env: BRANCH=2.1.10
- php: 7.0
env: BRANCH=2.1.10
- php: 7.1
env: BRANCH=2.1.10
- php: 7.0
env: BRANCH=2.1.11
- php: 7.1
env: BRANCH=2.1.11
- php: 7.0
env: BRANCH=2.1.11
- php: 7.1
env: BRANCH=2.1.11
- php: 7.0
env: BRANCH=2.1.12
- php: 7.1
env: BRANCH=2.1.12
- php: 7.0
env: BRANCH=2.1.12
- php: 7.1
env: BRANCH=2.1.12
- php: 7.0
env: BRANCH=2.1.13
- php: 7.1
env: BRANCH=2.1.13
- php: 7.0
env: BRANCH=2.1.13
- php: 7.1
env: BRANCH=2.1.13
- php: 7.0
env: BRANCH=2.1.14
- php: 7.1
env: BRANCH=2.1.14
- php: 7.0
env: BRANCH=2.1.14
- php: 7.1
env: BRANCH=2.1.14
- php: 7.0
env: BRANCH=2.1.15
- php: 7.1
env: BRANCH=2.1.15
- php: 7.0
env: BRANCH=2.1.15
- php: 7.1
env: BRANCH=2.1.15
- php: 7.0
env: BRANCH=2.1.16
- php: 7.1
env: BRANCH=2.1.16
- php: 7.0
env: BRANCH=2.1.16
- php: 7.1
env: BRANCH=2.1.16
- php: 7.0
env: BRANCH=2.1.17
- php: 7.1
env: BRANCH=2.1.17
- php: 7.0
env: BRANCH=2.1.17
- php: 7.1
env: BRANCH=2.1.17
- php: 7.0
env: BRANCH=2.1.18
- php: 7.1
env: BRANCH=2.1.18
- php: 7.0
env: BRANCH=2.1.18
- php: 7.1
env: BRANCH=2.1.18
- php: 7.0
env: BRANCH=2.2.0
- php: 7.1
env: BRANCH=2.2.0
- php: 7.2
env: BRANCH=2.2.1 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.0
- php: 7.1
env: BRANCH=2.2.0
- php: 7.0
env: BRANCH=2.2.1
- php: 7.1
env: BRANCH=2.2.1
- php: 7.2
env: BRANCH=2.2.1 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.1
- php: 7.1
env: BRANCH=2.2.1
- php: 7.0
env: BRANCH=2.2.2
- php: 7.1
env: BRANCH=2.2.2
- php: 7.2
env: BRANCH=2.2.2 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.2
- php: 7.1
env: BRANCH=2.2.2
- php: 7.0
env: BRANCH=2.2.3
- php: 7.1
env: BRANCH=2.2.3
- php: 7.2
env: BRANCH=2.2.3 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.3
- php: 7.1
env: BRANCH=2.2.3
- php: 7.0
env: BRANCH=2.2.4
- php: 7.1
env: BRANCH=2.2.4
- php: 7.2
env: BRANCH=2.2.4 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.4
- php: 7.1
env: BRANCH=2.2.4
- php: 7.0
env: BRANCH=2.2.5
- php: 7.1
env: BRANCH=2.2.5
- php: 7.2
env: BRANCH=2.2.5 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.5
- php: 7.1
env: BRANCH=2.2.5
- php: 7.0
env: BRANCH=2.2.6
- php: 7.1
env: BRANCH=2.2.6
- php: 7.2
env: BRANCH=2.2.6 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.6
- php: 7.1
env: BRANCH=2.2.6
- php: 7.0
env: BRANCH=2.2.7
- php: 7.1
env: BRANCH=2.2.7
- php: 7.2
env: BRANCH=2.2.7 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.7
- php: 7.1
env: BRANCH=2.2.7
- php: 7.0
env: BRANCH=2.2.8
- php: 7.1
env: BRANCH=2.2.8
- php: 7.2
env: BRANCH=2.2.8 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.8
- php: 7.1
env: BRANCH=2.2.8
- php: 7.0
env: BRANCH=2.2.9
- php: 7.1
env: BRANCH=2.2.9
- php: 7.2
env: BRANCH=2.2.9 USE_COMPOSER=1
- php: 7.0
env: BRANCH=2.2.9
- php: 7.1
env: BRANCH=2.2.9
- php: 7.0
env: BRANCH=2.2.10
- php: 7.1
env: BRANCH=2.2.10
- php: 7.2
env: BRANCH=2.2.10 USE_COMPOSER=1
- php: 7.1
env: BRANCH=2.2.10
- php: 7.2
env: BRANCH=2.2.10
- php: 7.1
env: BRANCH=2.3.0
- php: 7.2
env: BRANCH=2.3.0 USE_COMPOSER=1
- php: 7.3
env: BRANCH=2.3.0 USE_COMPOSER=1
- php: 7.1
env: BRANCH=2.3.1
- php: 7.2
env: BRANCH=2.3.1 USE_COMPOSER=1
- php: 7.3
env: BRANCH=2.3.1 USE_COMPOSER=1
- php: 7.1
env: BRANCH=2.3.2
- php: 7.2
env: BRANCH=2.3.2 USE_COMPOSER=1
- php: 7.3
env: BRANCH=2.3.2 USE_COMPOSER=1
- php: 7.1
env: BRANCH=2.3.3
- php: 7.2
env: BRANCH=2.3.3 USE_COMPOSER=1
- php: 7.3
env: BRANCH=2.3.3 USE_COMPOSER=1
- php: 7.1
env: BRANCH=2.3.4
- php: 7.2
env: BRANCH=2.3.4 USE_COMPOSER=1
- php: 7.3
env: BRANCH=2.3.4 USE_COMPOSER=1
before_script:
- bash bin/install.sh
script:
- bash bin/script.sh
script: make ci
# deploy:
# skip_cleanup: true

View file

@ -1,6 +1,7 @@
FILE = $(TRAVIS_BUILD_DIR)/VERSION
VERSION = `cat $(FILE)`
ARCHIVE_NAME = '/tmp/retailcrm-retailcrm-'$(VERSION)'.zip'
MAGE_ROOT = $(TRAVIS_BUILD_DIR)/../magento2
all: build_archive send_to_ftp delete_archive
@ -12,3 +13,10 @@ send_to_ftp:
delete_archive:
rm -f $(ARCHIVE_NAME)
ci:
ifeq ($(USE_COMPOSER,1))
php $(MAGE_ROOT)/vendor/phpunit/phpunit/phpunit -c $(MAGE_ROOT)/dev/tests/unit/phpunit.xml.dist $(MAGE_ROOT)/app/code/Retailcrm/Retailcrm/Test/Unit
else
phpunit -c $(MAGE_ROOT)/dev/tests/unit/phpunit.xml.dist $(MAGE_ROOT)/app/code/Retailcrm/Retailcrm/Test/Unit
endif

View file

@ -1,9 +0,0 @@
#!/usr/bin/env bash
if [ -z $TRAVIS_BUILD_DIR ]; then
exit 0;
fi
MAGE_ROOT=$TRAVIS_BUILD_DIR/../magento2
cd $MAGE_ROOT
php vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Retailcrm/Retailcrm/Test/Unit