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
|
2018-04-27 11:19:02 +03:00
|
|
|
|
2020-02-25 13:45:17 +03:00
|
|
|
if: tag IS blank
|
2018-04-27 11:19:02 +03:00
|
|
|
|
2020-02-25 13:45:17 +03:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- deploy
|
2018-04-27 11:19:02 +03:00
|
|
|
|
|
|
|
before_script:
|
2020-02-25 13:56:08 +03:00
|
|
|
- nvm install 10
|
2018-04-27 11:19:02 +03:00
|
|
|
- bash tests/bin/install.sh wc_retailcrm_test root '' localhost $WP_VERSION
|
|
|
|
|
2020-02-25 13:45:17 +03:00
|
|
|
script: make tests
|
2018-04-27 11:19:02 +03:00
|
|
|
|
2020-02-25 13:45:17 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- php: 5.6
|
|
|
|
env: WP_VERSION=latest WP_MULTISITE=0
|
|
|
|
- stage: deploy
|
|
|
|
deploy:
|
|
|
|
cleanup: false
|
|
|
|
provider: script
|
|
|
|
script: make
|
|
|
|
if: branch = master AND type = push AND fork = false
|