forked from CouscousPHP/Couscous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (35 loc) · 905 Bytes
/
.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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
cache:
directories:
- "$HOME/.composer/cache/files"
matrix:
include:
- php: 7.1
env:
- dependencies=lowest
- php: 7.1
env:
- DEPLOY_WEBSITE=true
before_script:
- composer install -n
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
script:
- vendor/bin/phpunit
- vendor/bin/psalm
after_success:
- if [ "$DEPLOY_WEBSITE" = "true" ]; then ./travis-prepare-release.sh && bin/couscous travis-auto-deploy; fi;
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: duX9ViWZ8Iin85auMS4XM4r+FqzShZ0at4sylE3QnUdXe6X5jfxBdOO+L1mhY1JyJ/BA8TjUziGDZ2e8UvwkMHIZRe+eZIifqwm/8Y9P2lMFmVNoHC4qfESl4NgHShc4gFjeUYkhMRQLgHScY+lkY+N4HVz10Y1P6B3c4EBXSxg=
file: bin/couscous.phar
on:
repo: CouscousPHP/Couscous
tags: true
php: '7.1'