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

Commit

Permalink
Merge branch 'replication_alerts' of github.com:uber/cherami-server i…
Browse files Browse the repository at this point in the history
…nto replication_alerts
  • Loading branch information
datoug committed Mar 9, 2017
2 parents 919b0af + 351acf4 commit 2ed8509
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .travis.yml
@@ -1,3 +1,23 @@
# Copyright (c) 2016 Uber Technologies, Inc.

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

dist: trusty
sudo: required

Expand Down Expand Up @@ -49,12 +69,15 @@ script:
after_success:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- 'if [ "$BRANCH" == "master" ]; then
export REPO=ubercherami/cherami-server-standalone;
export TAG=latest;
echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG";
docker login -u $DOCKER_USER -p $DOCKER_PASS;
docker build -f docker/standalone/Dockerfile -t $REPO:$COMMIT docker/standalone/;
docker tag $REPO:$COMMIT $REPO:$TAG;
docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER;
export TAG=latest;
export REPO=ubercherami/cherami-server-standalone;
echo "Building docker image for TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG";
travis_wait 20 docker build -f docker/standalone/Dockerfile -t $REPO:$COMMIT -t $REPO:$TAG -t $REPO:travis-$TRAVIS_BUILD_NUMBER docker/standalone/;
docker push $REPO;
export REPO=ubercherami/cherami-server;
echo "Building docker image for TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG";
travis_wait 20 docker build -f docker/server/Dockerfile -t $REPO:$COMMIT -t $REPO:$TAG -t $REPO:travis-$TRAVIS_BUILD_NUMBER docker/server/;
docker push $REPO;
fi'

0 comments on commit 2ed8509

Please sign in to comment.