Skip to content

Commit

Permalink
Adding Travis-CI builds to deploy the demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Jul 19, 2019
1 parent ead8d69 commit 3058898
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
@@ -0,0 +1,30 @@
branches:
only:
- master

language: bash

services:
- docker

before_install:
- sudo pip install --upgrade pip
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- echo $DOCKER_PASSWORD | docker login -u "$DOCKER_USERNAME" --password-stdin

install:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker build --no-cache -t databio/caravel:latest . || exit 1;
docker push databio/caravel:latest || exit 1;
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'shefflab/caravel' || exit 1;
fi

notifications:
email:
on_success: change
on_failure: always
recipients:
- nem2p@virginia.edu
- nsheffield@virginia.edu
- mjs5kd@virginia.edu

0 comments on commit 3058898

Please sign in to comment.