Merge pull request #2154 from dnephin/publish_master_builds

Publish master builds to bintray
This commit is contained in:
mnowster 2015-10-13 14:50:25 +01:00
commit 4b845746ef
14 changed files with 119 additions and 7 deletions

View file

@ -13,4 +13,3 @@ VERSION="$(python setup.py --version)"
python setup.py sdist
cp dist/docker-compose-$VERSION.tar.gz dist/docker-compose-release.tar.gz
docker build -t docker/compose:$TAG -f Dockerfile.run .

View file

@ -5,7 +5,7 @@ set -ex
./script/clean
TAG="docker-compose"
docker build -t "$TAG" .
docker build -t "$TAG" . | tail -n 200
docker run \
--rm --entrypoint="script/build-linux-inner" \
-v $(pwd)/dist:/code/dist \

View file

@ -3,7 +3,6 @@ set -ex
PATH="/usr/local/bin:$PATH"
./script/clean
rm -rf venv
virtualenv -p /usr/local/bin/python venv

View file

@ -29,7 +29,6 @@
# .\script\build-windows.ps1
$ErrorActionPreference = "Stop"
Set-PSDebug -trace 1
# Remove virtualenv
if (Test-Path venv) {

View file

@ -24,7 +24,7 @@ if !(which brew); then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
brew update > /dev/null
if !(python_version | grep "$desired_python_version"); then
if brew list | grep python; then

View 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
}

13
script/travis/build-binary Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -ex
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
script/build-linux
script/build-image master
# TODO: requires auth
# docker push docker/compose:master
else
script/prepare-osx
script/build-osx
fi

10
script/travis/ci Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
tox -e py27,py34 -- tests/unit
else
# TODO: we could also install py34 and test against it
python -m tox -e py27 -- tests/unit
fi

9
script/travis/install Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -ex
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install tox==2.1.1
else
pip install --user tox==2.1.1
fi

View 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),