This repository has been archived by the owner on Nov 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
36 lines (36 loc) · 1.44 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
language: php
branches:
only:
- master
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
php:
- 7.2
- 7.3
- 7.4
cache:
directories:
- "$HOME/.composer/cache/files"
install:
- composer self-update
- composer install --prefer-dist --no-interaction
script:
- "./vendor/bin/php-cs-fixer fix --dry-run --diff"
- "./vendor/bin/phpunit --testsuite 'Unit'"
- "./vendor/bin/phpunit --testsuite 'Feature'"
jobs:
include:
- stage: release
if: tag IS present
script: php hours app:build --no-interaction
install:
- composer self-update
- composer install --prefer-dist --no-interaction --no-dev -o
deploy:
provider: releases
api_key:
secure: g3Cw/z+pufxD6SRIp0O2THjGyNDFFegbQhFKtOTTJ7kX+8gd0uSOHNAwyzE9cV18Rovy1nrJ8vOVZmH+hyGNahOsQMC0Nl7XOgfDgX4rbvnLufNxnfxLm4gK/0CtgXuRvyGps+BbxG0YqhDvph7Rnvn+70usalM1gSLt3rpKUxQgbnEHsvz8WqGOjT4t3vtUTuH5xNfDWq6sIvCcYrHiT5K3umsHspNslWaD03hyWSqOkTO8pgCz1HXmeOAYoQK1NQwxvnMpqHxfRXLYLpfkMVKeNBD7exJvr/aWXUhad20pRN/boiX8AJznUu3uRDoDJNL1pUUMV1wB42QjNspPKuU4/wxWTQSXATCG71adnmequfd7PwjdL1ImGmnwq5V7NOYP9mNTLwpufReYKBbQsCfAykDHHV71096Ic/WETBrZ+dzCSJtUcl1kj/s6UhfWwECPsaLs0baEZEaI5MH4x++6FPRkgl8BUfrjXx4zsVkwqrpqJ09uY0dQ03xtgEmy2LJmp5o4BFDXVOxhJl9ERRJMA/MdSM+hG/uKYTKMbPHsw3rwvflCQe/aMqTKYrLymiwIPmHd3FgNtJj5AOnBuvsWWsICsMxwRDxYJ1d3QsNafj4KQxDas4zp9+ib4JtMJfmyyGvjWoZMerVmRRNXk7+DPEsZ7jdGkOCQJBVLb5s=
file: "./builds/hours"
on:
repo: matt-allan/hours
tags: true
skip_cleanup: 'true'