-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (32 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
branches:
only:
- master
- staging
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/refgenieserver:latest . || exit 1;
docker push databio/refgenieserver:latest || exit 1;
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'shefflab/refgenieserver' || exit 1;
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/refgenie-refresh' --message-body 'master' || exit 1;
fi
- if [ "$TRAVIS_BRANCH" == "staging" ]; then
docker build --no-cache -t databio/refgenieserver:staging -f staging.Dockerfile . || exit 1;
docker push databio/refgenieserver:staging || exit 1;
aws sqs send-message --queue-url 'https://queue.amazonaws.com/474683445819/dcos-refresh' --message-body 'shefflab/refgenieserver-staging' || exit 1;
fi
notifications:
email:
on_success: change
on_failure: always
recipients:
- nem2p@virginia.edu
- nsheffield@virginia.edu
- mjs5kd@virginia.edu