-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (40 loc) · 1.08 KB
/
.travis.yml
File metadata and controls
48 lines (40 loc) · 1.08 KB
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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache
- vendor
matrix:
fast_finish: true
include:
- php: 7.2
env:
- EXECUTE_DEPLOYMENT=true
- php: hhvm
allow_failures:
- php: hhvm
before_install:
- openssl aes-256-cbc -K $encrypted_7f463b6b860b_key -iv $encrypted_7f463b6b860b_iv
-in .travis/secrets.tar.enc -out .travis/secrets.tar -d
- phpenv config-rm xdebug.ini
- composer self-update
install:
- travis_retry composer install --no-interaction
- composer info -i
before_script:
- chmod +x ./bin/deploy.sh
script:
- phpunit -c ./tests/phpunit.xml
after_success:
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then composer install --no-dev ; fi
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./bin/deploy.sh ; fi
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file:
- "PhpWrapperProffix.phar"
- "PhpWrapperProffix.phar.version"
- "PhpWrapperProffix.phar.pubkey"
skip_cleanup: true
on:
tags: false