Skip to content

Commit

Permalink
Set up travis to run our functional tests agains the built container
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Oct 1, 2015
1 parent 8c34450 commit ddb3f5d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
sudo: required
language: python

python:
- "3.5"
- "3.4"

services:
- docker

before_install:
- sudo apt-get update
- sudo apt-get install xvfb firefox
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- docker pull opendataservices/resource-projects-etl:${TRAVIS_TAG:-$TRAVIS_BRANCH}
- docker build -t opendataservices/resource-projects-etl .
- docker run -p 127.0.0.1:8000:80 opendataservices/resource-projects-etl
# https://github.com/travis-ci/travis-ci/issues/4778
- sudo service docker restart ; sleep 10
- docker run -p 127.0.0.1:8000:80 -d opendataservices/resource-projects-etl

install:
- pip install -r requirements_test.txt

script:
Expand Down

0 comments on commit ddb3f5d

Please sign in to comment.