forked from xwp/stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (58 loc) · 1.27 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
62
63
64
65
66
67
68
69
70
71
dist: xenial
language: php
php:
- "5.6"
- "7.0"
- "7.2"
- "7.3"
addons:
apt:
packages:
# For xmllint.
- libxml2-utils
env:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
- WP_VERSION=trunk WP_MULTISITE=0
- WP_VERSION=trunk WP_MULTISITE=1
jobs:
include:
- name: Release Package
php: "7.3"
env: WP_VERSION=latest WP_MULTISITE=0 WP_RELEASE=1
services:
- mysql
before_install:
- nvm install
- nvm use
install:
- npm install
- export DEV_LIB_PATH="vendor/xwp/wp-dev-lib/scripts"
- export DEV_LIB_ONLY="phpunit"
- source "$DEV_LIB_PATH/travis.install.sh"
script:
- npm run lint
- source "$DEV_LIB_PATH/travis.script.sh"
after_script:
- source $DEV_LIB_PATH/travis.after_script.sh
before_deploy:
- npm run release
deploy:
provider: releases
api_key:
secure: HheYiv6c8ipHzMZBTH7xcKrOwCllvJTtfiTffAPK6XubWe3Kudn6IJUv0p1gmRhWXxZ5ciJQ/sgiCRGTRm/bubHs4tS7JOmpmoTdkrXajTxyyDCKpxhtT43nie0vNF+pWqVu2yOjhDR4pwtWjpQdzEKOz0kn0XSMT+vGsKQD50w=
overwrite: true
skip_cleanup: true
file_glob: true
file:
- stream.zip
- stream-$TRAVIS_TAG.zip
on:
tags: true
condition: "$WP_RELEASE = 1"
notifications:
email: false
cache:
npm: true
directories:
- $HOME/.composer/cache