Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 4095274

Browse files
committed
Publish to Bintray apt and GitHub via Travis
1 parent 839a18d commit 4095274

File tree

7 files changed

+82
-0
lines changed

7 files changed

+82
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target/

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
deploy:
2+
-
3+
file: bintray.json
4+
key: $BINTRAY_KEY
5+
on:
6+
tags: true
7+
provider: bintray
8+
skip_cleanup: true
9+
user: pauldraper
10+
-
11+
api_key: $GITHUB_AUTH
12+
file: target/apt_boto_s3.deb
13+
on:
14+
tags: true
15+
provider: releases
16+
skip_cleanup: true
17+
script: make dist

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
JOBS ?= 4
2+
3+
MAKEFLAGS += -r -j $(JOBS)
4+
5+
.ONESHELL:
6+
7+
.PHONY: dist
8+
dist: target/apt_boto_s3.deb
9+
10+
.PHONY: clean
11+
clean:
12+
rm -fr target
13+
14+
DEBIAN_SRCS := $(wildcard debian/*)
15+
DEBIAN_TARGETS := $(DEBIAN_SRCS:debian/%=target/apt_boto_s3/DEBIAN/%)
16+
17+
target/apt_boto_s3/usr/lib/apt/methods/s3: s3.py
18+
@mkdir -p $(@D)
19+
cp --preserve=mode $< $@
20+
21+
$(DEBIAN_TARGETS): target/apt_boto_s3/DEBIAN/%: debian/%
22+
@mkdir -p $(@D)
23+
cp --preserve=mode $< $@
24+
25+
target/apt_boto_s3.deb: $(DEBIAN_TARGETS) target/apt_boto_s3/usr/lib/apt/methods/s3
26+
fakeroot dpkg-deb --build target/apt_boto_s3 $@

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ This should just work, but if you need to override this default, set `S3::Signat
8787
```
8888
S3::Signature::Version "2";
8989
```
90+
91+
## Build
92+
93+
[![Build Status](https://travis-ci.org/lucidsoftware/apt-boto-s3.svg?branch=master)](https://travis-ci.org/lucidsoftware/apt-boto-s3)

bintray.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"files": [
3+
{
4+
"includePattern": "target/(apt_boto_s3)(\\.deb)",
5+
"matrixParams": {
6+
"deb_architecture": "amd64,i386",
7+
"deb_component": "main",
8+
"deb_distribution": "lucid"
9+
},
10+
"uploadPattern": "pool/main/a/apt-boto-s3/$1_0.1$2"
11+
}
12+
],
13+
"package": {
14+
"name": "apt-boto-s3",
15+
"repo": "apt",
16+
"subject": "lucidsoftware"
17+
},
18+
"publish": true,
19+
"version": {
20+
"name": "0.1",
21+
"gpgSign": true,
22+
"vcs_tag": "v0.1"
23+
}
24+
}

debian/control

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Architecture: all
2+
Depends: python-pip
3+
Description: The fast and simple S3 transport for apt
4+
Maintainer: Lucid Software <[email protected]>
5+
Package: apt-boto-s3
6+
Priority: optional
7+
Section: base
8+
Version: 0.1

debian/postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
pip install boto3

0 commit comments

Comments
 (0)