Skip to content

Commit

Permalink
Add Python3 Test and Docker Service
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Oct 16, 2018
1 parent 8b91a52 commit 2b7249e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
sudo: required

services:
- docker

# Docker-compose setup
# https://docs.travis-ci.com/user/docker/
env:
- DOCKER_COMPOSE_VERSION=1.9.0
- AIRFLOW_SLEEP_DURATION=60 # Number of seconds to wait for airflow to start

before_install:
- sudo rm /usr/local/bin/docker-compose
Expand All @@ -8,6 +16,15 @@ before_install:
- sudo mv docker-compose /usr/local/bin

script:

# Test Python 2
- cd tests/airflow1.8-py2 && docker-compose up -d
- pwd && sleep 30 # not sure how to dynamically wait
- pwd && sleep ${AIRFLOW_SLEEP_DURATION}
- curl http://localhost:8080/admin/metrics
- docker-compose down

# Test Python 3
- cd ../../tests/airflow1.8-py3 && docker-compose up -d
- pwd && sleep ${AIRFLOW_SLEEP_DURATION}
- curl http://localhost:8080/admin/metrics
- docker-compose down

0 comments on commit 2b7249e

Please sign in to comment.