Skip to content

Commit

Permalink
Add Travis CI support (#73)
Browse files Browse the repository at this point in the history
* Add Travis CI support

Simple build test

* ignore .travis.yml in Docker context
  • Loading branch information
djdefi committed May 24, 2016
1 parent 3e5f4c6 commit 106dfe0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ CONTRIBUTING.md
Changelog.md
Makefile
docker-compose.yml
.travis.yml
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sudo: required

services:
- docker

env:
global:
- DOCKER_VERSION=1.10.1-0~trusty
- DOCKER_COMPOSE_VERSION=1.7.1

before_install:
# list docker-engine versions
- apt-cache madison docker-engine

# upgrade docker-engine to specific version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}

# reinstall docker-compose at specific version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

script:
- docker-compose build

notifications:
email: false

0 comments on commit 106dfe0

Please sign in to comment.