Skip to content

Commit 84a6674

Browse files
committed
Package the extension as phar and deploy it during the build
1 parent 370e4d9 commit 84a6674

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

.travis.yml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
language: php
2-
32
matrix:
4-
include:
5-
- php: 7.1
6-
- php: 7.2
7-
env: deps=low
8-
fast_finish: true
9-
10-
before_script:
11-
- phpenv config-rm xdebug.ini
12-
- if [[ $deps = low ]]; then make update-min; else make install; fi
13-
3+
include:
4+
- php: 7.1
5+
env: EXECUTE_DEPLOYMENT=true
6+
- php: 7.2
7+
env: deps=low
8+
fast_finish: true
9+
before_install:
10+
- |
11+
if [ 'jakzal/phpunit-injector' == "$TRAVIS_PULL_REQUEST_SLUG" ]; then
12+
openssl aes-256-cbc -K $encrypted_a7af76e39835_key -iv $encrypted_a7af76e39835_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
13+
tar xvf .travis/secrets.tar -C .travis
14+
fi;
15+
- phpenv config-rm xdebug.ini
16+
install:
17+
- if [[ $deps = low ]]; then make update-min; else make install; fi
1418
script:
15-
- if [[ $deps = low ]]; then make test-min; else make test; fi
19+
- if [[ $deps = low ]]; then make test-min; else make test; fi
20+
- make package
21+
deploy:
22+
provider: releases
23+
api_key:
24+
secure: jn8Dw+WwWEnkF9BulSd8Jsah4piDP5KZYQd8ybV/JNAXwSUm5HQbZ8mCrVnWd/vqVCtnMPg+8+axU6bkhfAKZl7RHSwM0ZT3iJHNxQLwicOlx4MTgrwvD7HS3zf3WsguA84vNqipr+p/zzezhxzHALX6w7EkjqtF7MfC9H9jq7qPloaPzEqsLbwHnAV4usWTe1E7fNJ03LlJwgpiiU8TaGFJ+UVsuM7wcuGree0A8mttSd7ytE8s1mB2ph3UpXC7izSa/DXa3vOXXlB1AOKCbeunL0arKYGLrwmJq3wVw4oZSnCxgfM2P0uOwjQ7LhBF+OfQpnnS63OAlzeCQrOmMfXfdx8V8SyrjOeA1377MnrElbKgW/r4MGW0/cB1GMwSvsioJBMODFSRKmQH+TCcSpFHyzIij4QzWrfln7URpnRC1Vs0rOfZX+15iyyhI/UatNTrMlQXtIqJENeIg41PMqbmHMcQj63Wtz0DOJ+bBnWx3vsD+s7inuplkGo/JOjPXL4FMCRQvgFQNjoGNTrfoS6G7Ex4SV7toy26L8vzn5g2zys7dnF4mPQZRo81IFw++zP6dGYEbb+XJwNiVix/otKxA3d8PsnUj4zWqrYRBZIXntW1Gipgm3pKfQcuLE55witt5CPucIRYCph3MXB+6Tp+e2m5JaolknSN9LUgFK0=
25+
file:
26+
- build/zalas-phpunit-injector-extension.phar
27+
- build/zalas-phpunit-injector-extension.phar.pubkey
28+
skip_cleanup: true
29+
on:
30+
tags: true
31+
repo: jakzal/phpunit-injector
32+
condition: "$EXECUTE_DEPLOYMENT"

.travis/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.pem
2+
secrets.tar

.travis/secrets.tar.enc

6.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)