-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (52 loc) · 1.23 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
51
52
53
54
55
56
57
58
language: php
dist: trusty
jobs:
fast_finish: true
allow_failures:
- php: "hhvm"
include:
- php: "5.3"
dist: precise
- php: "5.4"
- php: "5.5"
- php: "5.6"
- php: "7.0"
- php: "7.1"
- php: "7.2"
- php: "7.3"
- php: "7.4snapshot"
- php: "nightly"
cache:
directories:
- .cache
# travis cache does not support files, only directories
# so do some hackery to use .cache/ for caching box.phar between builds
before_script: |
if [ -e .cache/box.phar ]; then
cp -p .cache/box.phar .
else
make box.phar
cp -p box.phar .cache
fi
script:
- make phar
deploy:
provider: releases
# https://docs.travis-ci.com/user/deployment/releases/
# Create token with privilege in https://github.com/settings/tokens and set as env var.
# It must have the public_repo or repo scope to upload assets
# $ travis env set -p GITHUB_API_TOKEN abcdefabcdefabcdef
# or via https://travis-ci.org/eventum/scm/settings
# or automate all with:
# $ travis setup releases
api_key: $GITHUB_API_TOKEN
file:
- eventum-cvs-hook.phar
- eventum-git-hook.phar
- eventum-svn-hook.phar
skip_cleanup: true
on:
repo: eventum/scm
php: '5.6'
tags: true
# vim:ft=yaml:et:ts=2:sw=2