Skip to content

Commit 04877d4

Browse files
committed
Build osx binary on travis and upload to bintray.
This requires a change to the make-branch script, to have it push the bump branch to the docker remote instead of the user remote. Pushing to the docker remote triggers the travis build, which builds the binary. Signed-off-by: Daniel Nephin <[email protected]>
1 parent fc99c7e commit 04877d4

File tree

5 files changed

+16
-28
lines changed

5 files changed

+16
-28
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ deploy:
2525
key: '$BINTRAY_API_KEY'
2626
file: ./bintray.json
2727
skip_cleanup: true
28+
on:
29+
all_branches: true

project/RELEASE-PROCESS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ Check out the bump branch and run the `build-binaries` script
5555

5656
When prompted build the non-linux binaries and test them.
5757

58-
1. Build the Mac binary in a Mountain Lion VM:
58+
1. Download the osx binary from Bintray. Make sure that the latest build has
59+
finished, otherwise you'll be downloading an old binary.
5960

60-
script/setup/osx
61-
script/build/osx
61+
https://dl.bintray.com/docker-compose/$BRANCH_NAME/
6262

6363
2. Download the windows binary from AppVeyor
6464

script/release/build-binaries

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ REPO=docker/compose
2323
# Build the binaries
2424
script/clean
2525
script/build/linux
26-
# TODO: build osx binary
27-
# script/setup/osx
28-
# script/build/osx
29-
# TODO: build or fetch the windows binary
30-
echo "You need to build the osx/windows binaries, that step is not automated yet."
3126

3227
echo "Building the container distribution"
3328
script/build/image $VERSION
3429

3530
echo "Create a github release"
3631
# TODO: script more of this https://developer.github.com/v3/repos/releases/
3732
browser https://github.com/$REPO/releases/new
33+
34+
echo "Don't forget to download the osx and windows binaries from appveyor/bintray\!"
35+
echo "https://dl.bintray.com/docker-compose/$BRANCH/"
36+
echo "https://ci.appveyor.com/project/docker/compose"
37+
echo

script/release/make-branch

+3-17
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,6 @@ $SHELL || true
8282
git commit -a -m "Bump $VERSION" --signoff --no-verify
8383

8484

85-
echo "Push branch to user remote"
86-
GITHUB_USER=$USER
87-
USER_REMOTE="$(find_remote $GITHUB_USER/compose)"
88-
if [ -z "$USER_REMOTE" ]; then
89-
echo "$GITHUB_USER/compose not found"
90-
read -r -p "Enter the name of your GitHub fork (username/repo): " GITHUB_REPO
91-
# assumes there is already a user remote somewhere
92-
USER_REMOTE=$(find_remote $GITHUB_REPO)
93-
fi
94-
if [ -z "$USER_REMOTE" ]; then
95-
>&2 echo "No user remote found. You need to 'git push' your branch."
96-
exit 2
97-
fi
98-
99-
100-
git push $USER_REMOTE
101-
browser https://github.com/$REPO/compare/docker:release...$GITHUB_USER:$BRANCH?expand=1
85+
echo "Push branch to docker remote"
86+
git push $REMOTE
87+
browser https://github.com/$REPO/compare/docker:release...$BRANCH?expand=1

script/travis/bintray.json.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"package": {
33
"name": "${TRAVIS_OS_NAME}",
4-
"repo": "master",
4+
"repo": "${TRAVIS_BRANCH}",
55
"subject": "docker-compose",
66
"desc": "Automated build of master branch from travis ci.",
77
"website_url": "https://github.com/docker/compose",
@@ -11,8 +11,8 @@
1111
},
1212

1313
"version": {
14-
"name": "master",
15-
"desc": "Automated build of the master branch.",
14+
"name": "${TRAVIS_BRANCH}",
15+
"desc": "Automated build of the ${TRAVIS_BRANCH} branch.",
1616
"released": "${DATE}",
1717
"vcs_tag": "master"
1818
},

0 commit comments

Comments
 (0)