-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (44 loc) · 1.94 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
sudo: false
language: php
php:
- 7.0
- 7.1
services:
- mysql
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- "/^v?[0-9\\.]+/"
cache:
directories:
- vendor
- "$HOME/.composer/cache"
env:
matrix:
- WP_VERSION=4.8 WP_MULTISITE=0 WP_PLUGIN=$(curl https://api.wordpress.org/plugins/info/1.0/contact-form-7.json | jq -r .download_link)
- WP_VERSION=latest WP_MULTISITE=0 WP_PLUGIN=$(curl https://api.wordpress.org/plugins/info/1.0/contact-form-7.json | jq -r .download_link)
- WP_VERSION=nightly WP_MULTISITE=0 WP_PLUGIN=$(curl https://api.wordpress.org/plugins/info/1.0/contact-form-7.json | jq -r .download_link)
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- bash bin/install-plugin.sh
- composer global require "phpunit/phpunit=4.8.*|5.7.*"
- composer install
script:
- phpunit
after_success:
- sed -i -e "s/nightly/${TRAVIS_TAG}/" $(basename $TRAVIS_REPO_SLUG).php
- curl https://raw.githubusercontent.com/miya0001/auto-build/master/auto-build.sh | bash
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: NSKA3o/ucd+G0Y4W4imyrqv81/sznczCyTcId9MFERRQXMGlQ6jMS+h0oPfT5eVOu+vFr2PpJ6qW88Y8fhXEPiiwR8DNQ/tsknHrqG+fKg4V0jDWeKkJDCEyIts5kWQUamIF0K0u52K4X5N8GhVTqSLegqfX0VzfK+bUGu6O+g8AVhEf0nF9ddf6Aut6LB47affAom8GmoHWDa0S/9cw9h0CisQqV94/m+r0SLY9vcqOAR/2RXzZUlUO41dB3YrO2uKdrO4KTnUZ12uAz0wHclx+VXdakYGkqsIsVh50LDSPqPvkYCgggAfhai63jPz3zai/YMa9QMc7c7Voe2VIPgx5mtyQtKmehLn/11gxi3RT78QpBQJa6aP0K8ZNJpGfks2CESbKzvAYsPUSKQajG/gI8apiZEQWc6NIqFuLXb3gaeKJZYmrXsxh9tXNPlzNAbKueQaJn8YXU0Gc0o09zgrkunwVeRHYlumQqjrK6lQOtQe4K6akZp8qD2zBag9f2y0pye1IQ2p7/ajJ17xB4d6kNQVVg5l1Xv0KGXJ/v+lLhUWMHKwx0yRoDA+KW6TJx9JDkYHbe65v+Ozu5wi9AmMbgH884jD3otfyI7Kr+bnKURuYOpl1vkuq7VnpXlUTGnixf5gvSH0CK2KfDDXDsseE3T230SBQ3jI0pgRhhq8=
file: redirect-for-contact-form-7.zip
on:
tags: true
repo: tarosky/redirect-for-contact-form-7