-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (48 loc) · 1.45 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
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- "/^v?[0-9\\.]+$/"
php:
- 5.6
- 7.1
services: mysql
env:
matrix:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=4.7 WP_MULTISITE=0
global:
- SVN_REPO: https://plugins.svn.wordpress.org/wp-yomigana/
- secure: ow/7zbHLorjUZZh6hZbo61UCqk8Q49JZ5eWu+GMlHSa7qS1ECvhXKjqe9iw1t42W6g6p/JEMJhdPLbzxK1cGk7hUgQjFXaofY1ZRuxkFtRmF3dTYehqdhTIdUmkV/UDnL5dwAt6r4rSd/PrqcmArSn1CdY2D1znIwvMN5QGg9TI=
matrix:
include:
- php: 7.1
env: WP_VERSION=latest WP_MULTISITE=0 WP_PULUGIN_DEPLOY=1
before_script:
- composer install
- curl -s -o $HOME/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/v0.33.8/nvm.sh
- source $HOME/.nvm/nvm.sh
- nvm install v10.13.0
- node --version
- npm install && npm run package
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- composer test
after_success: curl -L https://raw.githubusercontent.com/miya0001/travis2wpplugin/master/deploy.sh | bash
before_deploy:
- zip -r wp-yomigana.zip wp-yomigana/
deploy:
provider: releases
api_key:
secure: DWKO5DoBr71Iqxgr/t1gAIkzyCH8XksabudRVeFz+lmV4xcUOD68TH22/2Zl35V5PuFPnlh0eIgtDmWi88YAgJZvp3HWbNNJViRnPu/UrR4SgrMnlCaw1H15tG13Bzl0ndVa6jWa2tZwEJZ/hbZhl3Hkdek/4b4o4LoeqWL4XeY=
file: wp-yomigana.zip
skip_cleanup: true
on:
repo: fumikito/WP-Yomigana
tags: true
php: 5.6
condition: $WP_VERSION = latest