forked from ColdTrick/group_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (41 loc) · 1.17 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
# PHP project
language: php
# which versions of PHP to build with
php:
- 5.6
# set global environment variables
env:
global:
# make PROJECTNAME from vendor/project
# this strips everything before the last /
- PROJECTNAME=${TRAVIS_REPO_SLUG##*/}
# make sure we have the latest version of composer
before_install:
- composer self-update
# install dependencies
install:
- composer install
# no phpunit tests (yet)
script: true
# no email notifications
notifications:
email: false
# before deployment make the zipfile to upload
before_deploy:
# execute release prepare script
- sh ./vendor/coldtrick/releases/scripts/travis/before_deploy.sh
# deployment settings
deploy:
provider: releases
api_key:
secure: Y44NMe9o+0G1k0AtTRvHGN5FbbDocpoW70QlTKmxsLGPTAA1RsNAAXPkpz4b+PztoZTTUywAi6WrszSo2F5eYTdpNzbxhE/bGGtH/WHNGOOSkhwHxLQwEHpjI+IVPQ6m6EcpuWFZ0nQJBcP2wST1E4iRVk8Q60dUPeYp1vaheus=
# name of the zip to upload
file: ${PROJECTNAME}_$TRAVIS_TAG.zip
skip_cleanup: true
on:
# only when a tag is created in GitHub
tags: true
all_branches: true
after_deploy:
# execute release after script
- sh ./vendor/coldtrick/releases/scripts/travis/after_deploy.sh