Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Docker build test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Jun 3, 2016
1 parent 3f53045 commit 72c4ebc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ before_script:
- (test "$TRAVIS_TAG" && git checkout "$TRAVIS_TAG") || (test "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH")
script: rebar3 eunit
after_success:
- covertool -cover _build/test/cover/eunit.coverdata -appname rabbitmq-autocluster -output cobertura.xml
- codecov
- covertool -cover _build/test/cover/eunit.coverdata -appname rabbitmq-autocluster -output cobertura.xml
- codecov
before_deploy:
- make clean
- make dist
- tar cvfz autocluster-${TRAVIS_TAG}.tgz plugins/autocluster-${TRAVIS_TAG}.ez plugins/rabbitmq_aws-*.ez
- docker build -t aweber/rabbitmq-autocluster:${TRAVIS_TAG} .
- echo "TRAVIS_OTP_RELEASE = ${TRAVIS_OTP_RELEASE}"
deploy:
- provider: releases
api_key:
secure: ktklMK+XMOteFt+m9NHhVqKkA1Wo8f9L/cJphUmBMgb3TS+4+vAU50yY8omIyprS8poc3mBWxjYD9p9xdeDnXY2tiFrLDKCWU/jbH3awD0uL6W0Di8BYAVOGhr2Jjjp6gi/B67wHtCtzEoSSNNfMMZ+RWf4GZjJ96NXOLhPRx4k=
file: autocluster-${TRAVIS_TAG}.tgz
on:
condition: "$TRAVIS_OTP_RELEASE = 17.5"
tags: true
repo: aweber/rabbitmq-autocluster
- provider: script
script: deploy-container.sh
on:
condition: "$TRAVIS_OTP_RELEASE = 17.5"
tags: true
repo: aweber/rabbitmq-autocluster
- provider: releases
api_key:
secure: ktklMK+XMOteFt+m9NHhVqKkA1Wo8f9L/cJphUmBMgb3TS+4+vAU50yY8omIyprS8poc3mBWxjYD9p9xdeDnXY2tiFrLDKCWU/jbH3awD0uL6W0Di8BYAVOGhr2Jjjp6gi/B67wHtCtzEoSSNNfMMZ+RWf4GZjJ96NXOLhPRx4k=
file: autocluster-${TRAVIS_TAG}.tgz
on:
condition: "$TRAVIS_OTP_RELEASE = 17.5"
tags: true
repo: aweber/rabbitmq-autocluster
- provider: script
script: deploy-container.sh
on:
condition: "$TRAVIS_OTP_RELEASE = 17.5"
tags: true
repo: aweber/rabbitmq-autocluster
1 change: 1 addition & 0 deletions deploy-container.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
docker login -u=gavinmroy -p=${DOCKER_PASSWORD}
docker build -t aweber/rabbitmq-autocluster:${TRAVIS_TAG} .
docker tag aweber/rabbitmq-autocluster:${TRAVIS_TAG} aweber/rabbitmq-autocluster:latest
docker push aweber/rabbitmq-autocluster:${TRAVIS_TAG}
docker push aweber/rabbitmq-autocluster:latest

0 comments on commit 72c4ebc

Please sign in to comment.