-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
51 lines (44 loc) · 2.68 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
language: php
matrix:
fast_finish: true
include:
- php: '7.1'
- php: '7.2'
env: PHP_CODE_SNIFF=1
- php: '7.4'
- php: '8.0'
- php: '8.1'
before_install:
- if [[ "$PHP_CODE_SNIFF" == "1" ]]; then composer self-update; fi
- if [[ "$PHP_CODE_SNIFF" == "1" ]]; then composer install; fi
- if [[ "$PHP_CODE_SNIFF" == "1" ]]; then git clone -b 2.3.0 https://github.com/WordPress/WordPress-Coding-Standards.git /tmp/WordPress-Coding-Standards; fi
- if [[ "$PHP_CODE_SNIFF" == "1" ]]; then ./vendor/bin/phpcs --config-set installed_paths /tmp/WordPress-Coding-Standards; fi
script:
- find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
- if [[ "$PHP_CODE_SNIFF" == "1" ]]; then composer cs; fi
before_deploy:
- bash ./scripts/build.sh
deploy:
provider: releases
api_key:
secure: "GzvytV4YOaW+UFfjUKduhvrwQOHTs1QYrKYAbKPOQOxmlZXn1K26kaVjSLMfbIt2R0LDhDLJ95CEREdqs1y3E3TDBWN+8AezZnWjpNHiv459pM1YS3oacXBibG+Zf8rRUbhDupip8fYTuZ453cUFFZn7fyJvvIFyjrH3ZybEPxXqg8nhyF7y1+Q9uM8M6j1brFzYTKHy6TdXsC8DserP5W0HdVeQwQcUwkjyTEHe1Fz5pXUoEDfQe3oouS4G0FVI5L3MlpMgetC+JS73pCM4uigm/vNzT+03h2TfbYxg2NWKwmRQHzJxB1H+QHqY/CoSpC2wp1ff19YleYLlp0fBYvDqo9S+nCqdWuvAv1GaFa8F6DHZS8nmSwyBmoKJNz6YOv5K5wy4eNLYfc49KnTcZdEO9WZfyp8Na/qWKWXYEnBL9uc/5YRoy36IW9dMh3WfwiFmb3GzjS0s+1G3xfjSWx6f5J5RcjfUFPBcrQ0UaxzI4tPnvn2QDdXedme9X9T5tbeZ74iSKRUvkBY6hpz/YPz2x7LSu53qGdngcsHUNVXWHfIwPvgswBIA3xQwUuNPgSvwb/4z/M5H4J8lTBwwOkV0a2ynanZ+S60c6iJt1138Ym0+YDZs5HYVvDD+uuHC0I5Yu6CaPKqiNCHVvK4GhuDHm4/pNAn1btQlb8BvW7Y="
file: "./dist/pay-by-paynow-pl.zip"
skip_cleanup: true
on:
repo: pay-now/paynow-woocommerce
branch: master
tags: true
after_deploy:
- bash ./scripts/deploy_to_wp_svn.sh
notifications:
slack:
- rooms:
- secure: ZfDvqzzL7hGZ5/i+hkwvRs9nsa5dXKB9q0u6hIHSr5DJqoZbcG/DwbL9d2rjS7Zfkco2yUJsBgnwYIAs4UNh4hfunqbSxMhnWEQNq943OxNpRBeJQD5zh1Tt+JhhNMnRwX+J+d6+qrCXTLuQJuMGIm6eVczI0c3wMt9XUl6X0JSSa2FqHlmM/0IkZgTrexQWdCNj7hURY8GyyjQcvM0MIhsBZ8UgVth3dYvBBNxaaoCUOTW8bV3zklAmlUDqHiLlk2mschlf/G2MkrHSEI8vWfPZM4TikhaX+ccEaV0ls1ROB/5twq6vCWWjpD+zQtAk0YBKFNQtVS5Hojwp2INjrfjq8qrb+p45TP7hTdwApyuhupIgy/7xPjc7cp0CQDbUC2+gW/1H+RZl5B4RNtUGhndaBiklKNkMTtzf9Y/zgPrFaTV0on5dEtr53KJZkjgMtR/TmhF2WnxpvTa4eM45DjyjVTPW1WjlbXJnIrTFwUbvAmPhevGS99loJ0TLtPngbe991PFlQokUj3T34Uh8R2eLPrfqMb5+72eS8jQubQtHGie/awIfmXxEqPhjjvIqrTxTLwwhzPZsK+sb+xtAJdIaZu/ZzVUQf3yw78i4ImNZC3yu296nOEGO/l075C1/qJ+v+z0v3VhuumsP/vmLlGLaDkvyNY6IEwSET6AgfJ4=
on_success: never
on_failure: always
template:
- "Build %{repository_slug} (%{commit})"
- "%{message}"
- "Commit message: %{commit_message}"
- "Build number: #%{build_number}"
- "Build details: %{build_url}"