Skip to content

Commit

Permalink
Fix Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
dbstratta committed Jan 31, 2018
1 parent ce4327b commit f3aaa64
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@ language: generic
services:
- docker

before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce

script:
- docker build -t slack_silence_test -f dev.dockerfile .
- docker run --rm slack_silence_test mix test

after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker build -t sophilabs/slack-silence:latest .
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
docker push sophilabs/slack-silence:latest
docker build -t sophilabs/slack-silence:latest .;
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin;
docker push sophilabs/slack-silence:latest;
fi

0 comments on commit f3aaa64

Please sign in to comment.