forked from asbru-cm/asbru-cm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (67 loc) · 2.39 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: perl
services:
- docker
env:
global:
- CHANGELOG_NAME=Asbru-CM Team
- PRODUCT=asbru-cm
matrix:
- OS=debian DIST=jessie PACKAGE=deb
- OS=debian DIST=stretch PACKAGE=deb
- OS=debian DIST=buster PACKAGE=deb
- OS=ubuntu DIST=xenial PACKAGE=deb
- OS=ubuntu DIST=bionic PACKAGE=deb
- OS=ubuntu DIST=disco PACKAGE=deb DOCKER_REPO=asbru/asbru-cm
- OS=ubuntu DIST=eoan PACKAGE=deb
- OS=fedora DIST=29 PACKAGE=rpm
- OS=fedora DIST=30 PACKAGE=rpm
- OS=fedora DIST=31 PACKAGE=rpm
- OS=el DIST=7 PACKAGE=rpm
- OS=el DIST=8 PACKAGE=rpm
- OS=linuxmint DIST=sonya PACKAGE=deb DOCKER_IMAGE=debian-stretch
- OS=linuxmint DIST=sylvia PACKAGE=deb DOCKER_IMAGE=debian-stretch
- OS=linuxmint DIST=tara PACKAGE=deb DOCKER_IMAGE=ubuntu-bionic
- OS=linuxmint DIST=tessa PACKAGE=deb DOCKER_IMAGE=ubuntu-bionic
- OS=linuxmint DIST=tina PACKAGE=deb DOCKER_IMAGE=ubuntu-bionic
- OS=linuxmint DIST=tricia PACKAGE=deb DOCKER_IMAGE=ubuntu-bionic
install:
- sudo apt-get update
- sudo apt-get install git devscripts debhelper quilt
script: ./build.sh
deploy:
- provider: packagecloud
skip_cleanup: true
repository: snapshots
username: ${PACKAGECLOUD_USER}
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: "build/*.{deb,rpm,dsc}"
on:
branch: master
- provider: packagecloud
skip_cleanup: true
repository: asbru-cm
username: ${PACKAGECLOUD_USER}
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: "build/*.{deb,rpm,dsc}"
on:
tags: true
- provider: packagecloud
skip_cleanup: true
repository: loki
username: ${PACKAGECLOUD_USER}
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: "build/*.{deb,rpm,dsc}"
on:
branch: loki
after_deploy:
# Prune old packages from packagecloud. The last 5 should be enough.
- pip install -r ./packpack/tools/requirements.txt
- python ./packpack/tools/packagecloud prune ${PACKAGECLOUD_USER}/snapshots deb ${OS} ${DIST} --keep 5
- python ./packpack/tools/packagecloud prune ${PACKAGECLOUD_USER}/snapshots rpm ${OS} ${DIST} --keep 5
- python ./packpack/tools/packagecloud prune ${PACKAGECLOUD_USER}/loki deb ${OS} ${DIST} --keep 5
- python ./packpack/tools/packagecloud prune ${PACKAGECLOUD_USER}/loki rpm ${OS} ${DIST} --keep 5