forked from nikhilm/qhttpserver
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
69 lines (67 loc) · 3.2 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
59
60
61
62
63
64
65
66
67
68
69
sudo: required
language: cpp
cache: ccache
branches:
except:
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/
services:
- docker
jobs:
include:
- stage: test
script: docker build --tag ubuntu18.04 --build-arg JOB_NUMBER=$TRAVIS_JOB_NUMBER -f ./Dockerfile-ubuntu18.04 . && docker run -t -d ubuntu18.04 && docker cp $(docker ps -n 1 -q):/usr/share/apps/qhttpserver/packages/ $HOME && ls $HOME/packages/
before_deploy:
git config --local user.name "Gael de Chalendar"
git config --local user.email "[email protected]"
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
deploy:
provider: releases
api_key:
secure: F16J7J9a+VNEBwSiAksWxnF7c1M8Zg0+Tg8WGRRYy2p5aqR83Gj8/3M+SIPNw/Dzxj8+Sid1QkIZ42jISzoDKO3bJ0cX7ymqGy3bwqMMsue6l2TAa/heJKpaGroyLtjZRgD2pGtHigC8W1BOEz+5KhVBwWAYDF92TpluvyklGoA=
file_glob: true
file: $HOME/packages/*.deb
skip_cleanup: true
on:
repo: aymara/qhttpserver
tags: false
branches:
except:
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/
-
script: docker build --tag ubuntu16.04 --build-arg JOB_NUMBER=$TRAVIS_JOB_NUMBER -f ./Dockerfile-ubuntu16.04 . && docker run -t -d ubuntu16.04 && docker cp $(docker ps -n 1 -q):/usr/share/apps/qhttpserver/packages/ $HOME && ls $HOME/packages/
before_deploy:
git config --local user.name "Gael de Chalendar"
git config --local user.email "[email protected]"
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
deploy:
provider: releases
api_key:
secure: F16J7J9a+VNEBwSiAksWxnF7c1M8Zg0+Tg8WGRRYy2p5aqR83Gj8/3M+SIPNw/Dzxj8+Sid1QkIZ42jISzoDKO3bJ0cX7ymqGy3bwqMMsue6l2TAa/heJKpaGroyLtjZRgD2pGtHigC8W1BOEz+5KhVBwWAYDF92TpluvyklGoA=
file_glob: true
file: $HOME/packages/*.deb
skip_cleanup: true
on:
repo: aymara/qhttpserver
tags: false
branches:
except:
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/
-
script: docker build --tag debian9.4 --build-arg JOB_NUMBER=$TRAVIS_JOB_NUMBER -f ./Dockerfile-debian9.4 . && docker run -t -d debian9.4 && docker cp $(docker ps -n 1 -q):/usr/share/apps/qhttpserver/packages/ $HOME && ls $HOME/packages/
before_deploy:
git config --local user.name "Gael de Chalendar"
git config --local user.email "[email protected]"
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
deploy:
provider: releases
api_key:
secure: F16J7J9a+VNEBwSiAksWxnF7c1M8Zg0+Tg8WGRRYy2p5aqR83Gj8/3M+SIPNw/Dzxj8+Sid1QkIZ42jISzoDKO3bJ0cX7ymqGy3bwqMMsue6l2TAa/heJKpaGroyLtjZRgD2pGtHigC8W1BOEz+5KhVBwWAYDF92TpluvyklGoA=
file_glob: true
file: $HOME/packages/*.deb
skip_cleanup: true
on:
repo: aymara/qhttpserver
tags: false
branches:
except:
- /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d-[\da-f]+$/