forked from sethgitner/simple-author-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (61 loc) · 4.32 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
sudo: false
language: php
dist: trusty
matrix:
fast_finish: true
include:
- php: '5.4'
- php: '5.5'
- php: '5.6'
- php: '7.0'
- php: '7.1'
env:
- DEPLOY=1
- SNIFF=1
before_script:
- export PHPCS_DIR=/tmp/phpcs
- export SNIFFS_DIR=/tmp/sniffs
- if [[ "$SNIFF" == "1" ]]; then git clone -b 2.9 --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git
$PHPCS_DIR; fi
- if [[ "$SNIFF" == "1" ]]; then git clone -b master --depth 1 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git
$SNIFFS_DIR; fi
- if [[ "$SNIFF" == "1" ]]; then git clone -b 7.1.4 --depth 1 https://github.com/wimg/PHPCompatibility.git
$SNIFFS_DIR/PHPCompatibility; fi
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs --config-set installed_paths
$SNIFFS_DIR; fi
- if [[ "$SNIFF" == "1" ]]; then phpenv rehash; fi
- if [[ "$SNIFF" == "1" ]]; then npm install -g jscs; fi
- if [[ "$SNIFF" == "1" ]]; then npm install -g jshint; fi
- if [[ "$SNIFF" == "1" ]]; then wget https://develop.svn.wordpress.org/trunk/.jshintrc;fi
- if [[ "$SNIFF" == "1" ]]; then npm install -g grunt-cli;fi
- if [[ "$SNIFF" == "1" ]]; then npm install; fi
- if [[ "$SNIFF" == "1" ]]; then npm install -g grunt-checktextdomain;fi
script:
- mkdir -p build/logs
- find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
- if [[ "$SNIFF" == "1" ]]; then jshint ./assets/js/*.js; fi
- if [[ "$SNIFF" == "1" ]]; then jscs ./assets/js/*.js; fi
- if [[ "$SNIFF" == "1" ]]; then grunt textdomain; fi
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n ./*.php --standard=./phpcs.ruleset.xml
--extensions=php; fi
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n ./**/*.php --standard=./phpcs.ruleset.xml
--extensions=php --ignore=./inc/plugin-activation.php,./node_modules/*.php; fi
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n ./**/**/*.php
--standard=./phpcs.ruleset.xml --extensions=php --ignore=./node_modules/**/*.php;fi
notifications:
email: false
slack:
secure: WFuEWy1NIVLAfo81aAdYkGaZYciHTR6ySzjH69xfaZuQYciT6LJXCrPj+aOP8EtnpixrmbW64ChoQYfth9a0m3LUF5wy2gsbdBQr5gIMr/tpxLAZ53E2wBVWnHF79VQUNiqfrInPe3bFYGkORGyqNBxB9Rq8G6IaY2mXL1BXn7sBZQaxZBGjgNMvfMnVtZrdllFcl0rEDUgyXKvjalM5s+Evg6ghUavN42SpB421GEvXs/WX4CAXJAiRpBYxrtdOuDd4aWTj0NzF6ltEUMTWnke36YfCP2QKi4ghQYx6QHiL4Psv22nIJJlKHoYJRt6GfMtsu8BNXxmuOoHOXxPXXEAEWFJHYYCmhVXxc0fb4LA+QUt89Ica17jUK8jsCQw05GwN2e72PFYaOAaJp2w1szUX4Y25z3N57UGpx9qkg2i8pNYHGZ9mHlw1dHCRTVPlVdSCwFKGl2ZVEsO336EUjxJ46bcFxN2wwOA9rNlygJBI8xJbca+muL/MiOOyGWFwwjS0BlK062AFIFAGZXDyaciT3jcZ1XPZ773sdBfdn474az35phf44sWnluOopefvkyWvyoXFOCZf5INiOsrnYrMmaztymngrzOuyw3OEt8sumTCeT7wgu34tSKaYVz2JGb+SU87WfzaNLsReMxVOvYb13ktEeE8jvtVqKh17Gtc=
cache:
directories:
- node_modules
after_success:
- wget https://raw.githubusercontent.com/cristianraiber/travis-deployment/master/deploy.sh
- bash deploy.sh
- grunt build-archive
- bash set_tags.sh
env:
global:
- SVN_REPO: https://plugins.svn.wordpress.org/simple-author-box/
- secure: "KZ5KMLl7kjl3wdvUbnYy8TceVHW53FavOl1HXKAw5jt+b98pWFpCh0+Kvv+Lc39kJYBJV6tJ424xIi41w3G8kBUMgnJwNswTSsI6b5yvNiVxHL76ZvyuzjZ4svIuTwxv9ZhRku9YSEsjV1IHXKXn/62TdH2FJpswUVS4ZbwGtr7L+WJlxpix9A4Ydlpa7bYmppumasfrTs5dLA7k5qM3IL6sFmPxqQ1kuMtqBeZ0PuLAfu5Ba9IJEADgPzCEphIPcCueBJfemDFQilo2gDYB0RN60TRe1n6a/09QmE/uuIFHNHccStxktpjYOUJOMpFpe0aUwLeLCpM1Yti28Kc31p3L2ngnYgLF+6eIvTHBEtpCUVPsMP82rJ9tGBXHmGJXhOrQ3YmJwlMopVb0kr2JCog6ID3/HymDMpK5TXtOjUzeFwa4Mx3Vnp8F2Yk86FZOI/3LsQyu95tCH3i1H/EZZF3RiIawftISjGzgFVL7CaCdFfQ6IKxyIyJKkvb7g+1cGDlsFSfcAvBZ7TsEQIoXMtbTFq5CROXciG60BPaLgt1H+dqNjHOt0D4NfUHLxXTBH11QbuwZEP23dszzaD/VDefc1iKBiFD9CEmfi96lJ2wRY6I20TlOCoUw54auUpohVVrArqI1ws3QaS/bzmTCFsjoQ960yIR3RC9xQGqg7ek="
- secure: "TvmmrhKWmXzgu6QQ2qyhgkVk+rbGT9MjJ1rbp/Hesv6vUTzWTq9qfmJm22m6X1o7I7IzQ+gxPlp/ULzYfAz3ysGsEHr+thBpu3UjldV/Gh+Y4DnwCtPeeRAdO60r1RylN6X90Hcs9IqBSJw47gbgXyP+mn0sYNFoFnYVWzNHKflns7RvlrQWXGLt6rpTi2EdCJeRDZ+rCB6qPnyPx+lRrcY/8g1E/SR2dgmRoZ5xRLh2Iylj8xFT9yq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