forked from munkireport/munkireport-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 961 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
language: php
php:
- '7.1'
mysql:
database: travis_ci_munkireport_php_test
username: root
encoding: utf8
cache:
directories:
- vendor
install:
- composer install --no-dev
script:
- tar cfz "${HOME}/munkireport-php-${TRAVIS_TAG}.tar.gz" * .env.example
- zip -r "${HOME}/munkireport-php-${TRAVIS_TAG}.zip" * .env.example
before_deploy:
- git config --local user.name "munkireport-php"
- git config --local user.email "munkireport-php@users.noreply.github.com"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
api_key:
secure: FdFNw8Qz1doHtJ6x+SrXW2P0jDWv3sS32V4Qq61rVrphF0MSskwq+WtUVkuk5+Q9ZDTRGImqHOzxpWnYe336cthB5hrzjHyt4hpzno1X7BDZfoaMydNDHzGcAvQ9oEzrHaXrI2Fj94pHW1oKB+Pw4DSDYnsa3OyxbTnNHvb8uhU=
file:
- ${HOME}/munkireport-php-${TRAVIS_TAG}.zip
- ${HOME}/munkireport-php-${TRAVIS_TAG}.tar.gz
on:
repo: munkireport/munkireport-php
tags: true
skip_cleanup: true