Skip to content

Commit 5b8cb87

Browse files
committedJul 3, 2018
Travis stages and jobs
1 parent 74d2d5b commit 5b8cb87

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed
 

‎.travis.yml

+23-16
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,29 @@ after_success:
2929
- docker run -t -d debian9.4
3030
- docker cp $(docker ps -n 1 -q):/usr/share/apps/qhttpserver/packages/ $HOME
3131

32+
stages:
33+
- test
34+
- before_deploy
35+
- deploy
36+
3237
jobs:
3338
include:
3439
- stage: before_deploy
35-
git config --local user.name "Gael de Chalendar"
36-
git config --local user.email "kleag@free.fr"
37-
git tag "$(git log --date=iso -1 | grep Date | sed -e 's/Date:\ *//' -e 's/\+.*//' -e 's/[- :]//g')-$(git log --format=%h --abbrev=8 -1)" || true
38-
-stage: deploy
39-
provider: releases
40-
api_key:
41-
secure: F16J7J9a+VNEBwSiAksWxnF7c1M8Zg0+Tg8WGRRYy2p5aqR83Gj8/3M+SIPNw/Dzxj8+Sid1QkIZ42jISzoDKO3bJ0cX7ymqGy3bwqMMsue6l2TAa/heJKpaGroyLtjZRgD2pGtHigC8W1BOEz+5KhVBwWAYDF92TpluvyklGoA=
42-
file_glob: true
43-
file: $HOME/packages/*.deb
44-
skip_cleanup: true
45-
on:
46-
repo: aymara/qhttpserver
47-
tags: false
48-
branches:
49-
except:
50-
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/
40+
before_deploy:
41+
git config --local user.name "Gael de Chalendar"
42+
git config --local user.email "kleag@free.fr"
43+
git tag "$(git log --date=iso -1 | grep Date | sed -e 's/Date:\ *//' -e 's/\+.*//' -e 's/[- :]//g')-$(git log --format=%h --abbrev=8 -1)" || true
44+
- stage: deploy
45+
deploy:
46+
provider: releases
47+
api_key:
48+
secure: F16J7J9a+VNEBwSiAksWxnF7c1M8Zg0+Tg8WGRRYy2p5aqR83Gj8/3M+SIPNw/Dzxj8+Sid1QkIZ42jISzoDKO3bJ0cX7ymqGy3bwqMMsue6l2TAa/heJKpaGroyLtjZRgD2pGtHigC8W1BOEz+5KhVBwWAYDF92TpluvyklGoA=
49+
file_glob: true
50+
file: $HOME/packages/*.deb
51+
skip_cleanup: true
52+
on:
53+
repo: aymara/qhttpserver
54+
tags: false
55+
branches:
56+
except:
57+
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/

‎Dockerfile-ubuntu16.04

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ RUN install -D /src/qhttpserver/build/qhttpserver-0.0.1-Linux.deb /usr/share/app
1919

2020
# install github-release to be able to deploy packages
2121
RUN wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 && tar xjf linux-amd64-github-release.tar.bz2 && cp bin/linux/amd64/github-release /usr/bin
22+

0 commit comments

Comments
 (0)
Please sign in to comment.