Add upload to bintray from travis.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
ad96e10938
commit
9ce1884925
7 changed files with 54 additions and 4 deletions
29
script/travis/bintray.json.tmpl
Normal file
29
script/travis/bintray.json.tmpl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"package": {
|
||||
"name": "${TRAVIS_OS_NAME}",
|
||||
"repo": "master",
|
||||
"subject": "docker-compose",
|
||||
"desc": "Automated build of master branch from travis ci.",
|
||||
"website_url": "https://github.com/docker/compose",
|
||||
"issue_tracker_url": "https://github.com/docker/compose/issues",
|
||||
"vcs_url": "https://github.com/docker/compose.git",
|
||||
"licenses": ["Apache-2.0"]
|
||||
},
|
||||
|
||||
"version": {
|
||||
"name": "master",
|
||||
"desc": "Automated build of the master branch.",
|
||||
"released": "${DATE}",
|
||||
"vcs_tag": "master"
|
||||
},
|
||||
|
||||
"files": [
|
||||
{
|
||||
"includePattern": "dist/(.*)",
|
||||
"excludePattern": ".*\.tar.gz",
|
||||
"uploadPattern": "$1",
|
||||
"matrixParams": { "override": 1 }
|
||||
}
|
||||
],
|
||||
"publish": true
|
||||
}
|
||||
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
script/build-linux
|
||||
# TODO: add script/build-image
|
||||
script/build-image master
|
||||
# TODO: requires auth
|
||||
# docker push docker/compose:master
|
||||
else
|
||||
script/prepare-osx
|
||||
script/build-osx
|
||||
|
|
|
|||
9
script/travis/render-bintray-config.py
Executable file
9
script/travis/render-bintray-config.py
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
import datetime
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
os.environ['DATE'] = str(datetime.date.today())
|
||||
|
||||
for line in sys.stdin:
|
||||
print os.path.expandvars(line),
|
||||
Loading…
Add table
Add a link
Reference in a new issue