forked from mollie/mollie-api-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1000 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
language: php
dist: trusty
php:
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
sudo: false
cache:
directories:
- "$HOME/.composer/cache"
env:
- COMPOSER_NO_INTERACTION=1
install:
- travis_retry composer install --no-scripts --no-suggest
script:
- composer validate --strict
- find src examples tests -name '*.php' | xargs -n 1 -P4 php -l
- vendor/bin/phpunit
before_deploy:
- sed -i "/const CLIENT_VERSION/c\\ const CLIENT_VERSION = '${TRAVIS_TAG:1}';" src/MollieApiClient.php
- composer install --no-dev --no-scripts --no-suggest --classmap-authoritative
- zip -r mollie-api-php.zip examples src vendor composer.json LICENSE README.md
deploy:
provider: releases
api_key:
secure: oXVzXjLkVfr7+5leMbIHQnLDg1o9/ldG6qdJ/GtwumZJYiit9h7VBYpxRvQGgXUESzhDlBf2jCLKxqxW+P2/PwG738/rSJVjLvbtbyFRz+pvk4o8rm3U7IKRv87BFhIvhaO9HcgvmyHbPMzGKRdAsWYWGQf/dg9N77xeDZ9++80=
file: mollie-api-php.zip
skip_cleanup: true
on:
tags: true
php: 7.2