forked from eventum/eventum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 1.52 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
language: minimal
sudo: required
dist: xenial
# disable the default submodule logic
git:
submodules: false
# https://docs.travis-ci.com/user/languages/php/#choosing-php-versions-to-test-against
jobs:
# NOTE: when adding/removing jobs, update bin/releng/snapshot.sh travis_log job_id
include:
# TODO: would be nice to have two separate stages, one for build, and other for actually publishing
- stage: release
name: GitHub Release
script:
- docker --version
- docker build . -f bin/releng/Dockerfile -t releng --target=releng
- export -p > env.sh
- docker run -v $(pwd):/app -e DOCKER_ENV_LOAD=./env.sh releng bin/releng/dist.sh
# https://docs.travis-ci.com/user/deployment/releases
# https://docs.travis-ci.com/user/build-stages/deploy-github-releases/
before_deploy:
- bin/releng/changelog.sh
deploy:
provider: releases
# Create token in https://github.com/settings/tokens and set as env var:
# $ travis env set -p GITHUB_API_TOKEN ...
# or via https://travis-ci.org/eventum/eventum/settings
api_key: $GITHUB_API_TOKEN
file_glob: true
file:
- eventum-*.tar.xz
skip_cleanup: true
overwrite: true
on:
repo: eventum/eventum
tags: true
cache:
apt: true
directories:
- $HOME/.composer/cache
- $HOME/.composer/vendor
- cache
- vendor
notifications:
irc:
channels: "chat.freenode.net#eventum"
skip_join: true
# vim:ts=2:sw=2:et