forked from phpstan/phpstan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (53 loc) · 2.31 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
dist: xenial
language: php
stages:
- test
- name: phar-test
if: branch = master && type = push
- name: phar-push
if: branch = master && type = push
php:
- 7.1
- 7.2
- 7.3
- master
env:
matrix:
- dependencies=lowest
- dependencies=highest
global:
secure: Wxs9IuFkyacKk/Cu4qxFkkSldob6AhJtx3MDS6Nehz/VF4M88awmI/GcVzfcXjFIA2+EJlkA+X0ymxP9xY5sp+vvmF4mkBIOvSvQdIOLsy73Ixpji3nqc8+epuvtBUGA4Y2xlLmBxSPYZlpVc/DRR2mIlzqDfOQc+gUmJ1aOZPUvs533cl4k0V23hU7L3LxgAnNY7j5vfNgYUhLqBHnqZ0yHt+m0x56wTOBHIBXH+LVNdgsl07fZnuC9HBb3lZKhtCtJiMyC0SsFQLljESaedTHRzptcOuvO+3dmt9R+AP/WxbdmleBaozCrwpdCK3Lqwrt9DXkxtn9ERjtVg0uT2KV5Mm5y4W0w9EXzX/8iUexlJaYOP7OYBtaV0R65w+oiC9dupKiFFvQtJkWcMg+4FCqEjNVM/smXin7+4dLgXiioLtqbjyQQqVwy/U+UmkQ5KIcWjJZGWkL79j1z1e29esNudieXqrX/yvGUW7Ng+4U3G2IHdWH3nMmjwx5/oBuOlc+6vu5aXdDRZVE12CJZ2X/uyJW2Ls5YLJsThAJ9roxsZ29MNZRihUOGk2lLDy/Q5TS6VcsaUmRaZHngM7Xt7v7pJLLbPIomgqGshPKxEXFO3vowZ7nXT1gJX0/FaBBqOahW0scGnxfZlJRZPWbvTg8gxhIGRxhNNYaX5Bb2hw8=
matrix:
allow_failures:
- php: master
before_script:
- if php --ri xdebug >/dev/null; then phpenv config-rm xdebug.ini; fi
install:
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --no-interaction; fi
- if [ "$dependencies" = "highest" ]; then composer update --no-interaction; fi
script:
- vendor/bin/phing
jobs:
include:
- stage: phar-test
script:
- git clone https://github.com/phpstan/phpstan-compiler && cd phpstan-compiler && ./run-e2e-tests.sh $TRAVIS_COMMIT
- stage: phar-push
script:
- |
git clone https://github.com/phpstan/phpstan-compiler && \
composer install --working-dir=phpstan-compiler && \
php phpstan-compiler/bin/compile $TRAVIS_COMMIT && \
git clone https://${GITHUB_TOKEN}@github.com/phpstan/phpstan-shim.git > /dev/null 2>&1 && \
cp phpstan-compiler/tmp/phpstan.phar phpstan-shim/phpstan.phar && \
cp phpstan-compiler/tmp/phpstan.phar phpstan-shim/phpstan && \
cd phpstan-shim && \
git config user.email "[email protected]" && \
git config user.name "Travis CI" && \
git add phpstan phpstan.phar && \
git commit -m "Updated PHPStan to commit ${TRAVIS_COMMIT}" && \
git push --quiet origin master
cache:
directories:
- $HOME/.composer/cache
- tmp