1
0
mirror of synced 2025-01-31 07:11:42 +03:00
woocommerce-module/.travis.yml

273 lines
8.6 KiB
YAML
Raw Normal View History

2020-02-25 13:45:17 +03:00
os: linux
2019-07-17 17:47:11 +03:00
dist: trusty
2020-02-25 13:45:17 +03:00
language: php
2020-02-25 13:45:17 +03:00
if: tag IS blank
2020-02-25 13:45:17 +03:00
stages:
- test
2020-03-03 14:28:16 +03:00
- github releases
2020-02-25 13:45:17 +03:00
- deploy
2020-03-05 11:07:59 +03:00
before_install:
- export LAST_TAG=`git describe --abbrev=0 --tags`
- export CURRENT_VERSION=v`cat VERSION`
- git config --global core.autocrlf false
2020-03-05 11:07:59 +03:00
before_script:
2020-02-25 13:56:08 +03:00
- nvm install 10
2020-02-25 14:05:51 +03:00
- make install
2020-02-27 14:12:42 +03:00
env:
global:
- DB_NAME=wc_retailcrm_test
- DB_USER=root
- DB_PASS=''
- DB_HOST=localhost
script: make test
2020-02-25 13:45:17 +03:00
jobs:
include:
2020-03-03 10:20:58 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.4 WC_VERSION=3.0.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.4 WC_VERSION=3.1.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.4 WC_VERSION=3.2.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.5 WC_VERSION=3.0.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.5 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.5 WC_VERSION=3.0.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.5 WC_VERSION=3.1.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.5 WC_VERSION=3.1.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.5 WC_VERSION=3.1.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.5 WC_VERSION=3.2.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.5 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.5 WC_VERSION=3.2.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.6 WC_VERSION=3.0.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.6 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.6 WC_VERSION=3.0.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.6 WC_VERSION=3.1.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.6 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.6 WC_VERSION=3.1.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.6 WC_VERSION=3.2.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.6 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.6 WC_VERSION=3.2.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.7 WC_VERSION=3.0.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.7 WC_VERSION=3.0.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.7 WC_VERSION=3.0.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.7 WC_VERSION=3.1.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.7 WC_VERSION=3.1.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.7 WC_VERSION=3.1.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.7 WC_VERSION=3.2.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.4
env: WP_VERSION=4.7 WC_VERSION=3.2.0 WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=4.7 WC_VERSION=3.2.0 WP_MULTISITE=0
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.8 WC_VERSION=3.3.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-03-02 13:54:34 +03:00
- php: 5.6
env: WP_VERSION=4.8 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.3.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-03-03 11:30:13 +03:00
- php: 5.3
dist: precise
env: WP_VERSION=4.8 WC_VERSION=3.4.0 WP_MULTISITE=0 PHP_VERSION=5.3
2020-02-27 14:12:42 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.4.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-02-27 14:12:42 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.5.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.5.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.5.0 WP_MULTISITE=0
2020-02-27 14:12:42 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.8 WC_VERSION=3.5.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-02-25 13:45:17 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-25 14:36:12 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-25 14:36:12 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.3.0 WP_MULTISITE=0
2020-02-25 14:36:12 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.3.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-02-26 17:23:12 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.4.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.4.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-02-26 17:23:12 +03:00
- php: 5.6
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.5.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.0
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.5.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.1
2020-03-02 13:54:34 +03:00
env: WP_VERSION=4.9 WC_VERSION=3.5.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=4.9 WC_VERSION=3.5.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 5.6
env: WP_VERSION=5.0 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=5.0 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.0 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=5.0 WC_VERSION=3.6.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 5.6
env: WP_VERSION=5.1 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=5.1 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.1 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=5.1 WC_VERSION=3.6.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 5.6
env: WP_VERSION=5.2 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=5.2 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.2 WC_VERSION=3.6.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=5.2 WC_VERSION=3.6.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 7.0
env: WP_VERSION=5.1 WC_VERSION=3.7.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.1 WC_VERSION=3.7.0 WP_MULTISITE=0
2020-02-26 17:23:12 +03:00
- php: 7.2
2020-03-02 13:54:34 +03:00
env: WP_VERSION=5.1 WC_VERSION=3.7.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 7.0
env: WP_VERSION=5.2 WC_VERSION=3.7.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.2 WC_VERSION=3.7.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=5.2 WC_VERSION=3.7.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 7.0
env: WP_VERSION=5.3 WC_VERSION=3.8.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=5.3 WC_VERSION=3.8.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=5.3 WC_VERSION=3.8.0 WP_MULTISITE=0 USE_COMPOSER=1
- php: 7.0
env: WP_VERSION=latest WC_VERSION=3.9.0 WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=latest WC_VERSION=3.9.0 WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=latest WC_VERSION=3.9.0 WP_MULTISITE=0 USE_COMPOSER=1
2020-03-03 14:28:16 +03:00
- php: 7.3
env: WP_VERSION=latest WC_VERSION=latest WP_MULTISITE=0 USE_COMPOSER=1
2020-03-02 13:54:34 +03:00
- php: 7.0
env: WP_VERSION=latest WC_VERSION=latest WP_MULTISITE=0
- php: 7.1
env: WP_VERSION=latest WC_VERSION=latest WP_MULTISITE=0
- php: 7.2
env: WP_VERSION=latest WC_VERSION=latest WP_MULTISITE=0 USE_COMPOSER=1
2020-03-03 14:28:16 +03:00
- php: 7.3
env: WP_VERSION=latest WC_VERSION=latest WP_MULTISITE=0 USE_COMPOSER=1
after_success: bash <(curl -s https://codecov.io/bash)
2020-03-02 13:54:34 +03:00
2020-03-03 14:28:16 +03:00
- stage: github releases
2020-03-03 15:29:48 +03:00
before_script: skip
script: skip
2020-03-03 14:28:16 +03:00
before_deploy:
- export VERSION=`cat VERSION`
- git config --local user.name "retailCRM"
- git config --local user.email "support@retailcrm.ru"
- export TRAVIS_TAG=v$VERSION
- git tag $TRAVIS_TAG
deploy:
provider: releases
token: $GITHUB_OAUTH_TOKEN
cleanup: false
on:
condition: "$LAST_TAG != $CURRENT_VERSION"
2020-03-03 15:29:48 +03:00
if: branch = master AND type = push AND fork = false
2020-02-25 13:45:17 +03:00
- stage: deploy
2020-03-05 11:07:59 +03:00
before_install: skip
before_script: skip
script: make svn_clone
2020-02-25 13:45:17 +03:00
deploy:
cleanup: false
provider: script
2020-03-05 11:07:59 +03:00
script: make svn_push
2020-03-06 10:22:59 +03:00
if: branch = master AND type = push AND fork = false
2020-03-06 09:21:16 +03:00
after_deploy: make remove_dir