forked from asbru-cm/asbru-cm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (42 loc) · 1.38 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
sudo: required
language: perl
services:
- docker
env:
matrix:
- OS=debian DIST=jessie PACKAGE=deb
- OS=debian DIST=stretch PACKAGE=deb
- OS=ubuntu DIST=trusty PACKAGE=deb
- OS=ubuntu DIST=artful PACKAGE=deb
- OS=ubuntu DIST=xenial PACKAGE=deb
- OS=fedora DIST=27 PACKAGE=rpm DOCKER_IMAGE=fedora-rawhide
- OS=fedora DIST=26 PACKAGE=rpm
- OS=linuxmint DIST=sonya PACKAGE=deb DOCKER_IMAGE=debian-stretch
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
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