sudo: required

language: python
python: 2.7

services:
  - docker

before_install:
  - docker build -t bgruening/docker-jupyter-notebook .
  - docker run -d -p 8888:8888 bgruening/docker-jupyter-notebook

script:
  - docker ps
  # testing the get/put helper scripts
  - docker run -i -t bgruening/docker-jupyter-notebook get --help
#  - sleep 20 && curl --fail http://localhost:8888/ipython/notebooks

after_success:
  - if [[ $TRAVIS_PULL_REQUEST -eq "false" ]]; then docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; fi
  - if [[ $TRAVIS_PULL_REQUEST -eq "false" ]]; then docker tag -f bgruening/docker-jupyter-notebook bgruening/docker-jupyter-notebook:${TRAVIS_TAG:-$TRAVIS_BRANCH}; docker push bgruening/docker-jupyter-notebook:${TRAVIS_TAG:-$TRAVIS_BRANCH}; fi

sudo: required

language: python
python: 2.7

services:
  - docker

before_install:
  - docker build -t bgruening/docker-jupyter-notebook .
  - docker run -d -p 8888:8888 bgruening/docker-jupyter-notebook

script:
  - docker ps
  # testing the get/put helper scripts
  - docker run -i -t jupyter python -c 'import galaxy_ie_helpers'
#  - sleep 20 && curl --fail http://localhost:8888/ipython/notebooks

after_success:
  - if [[ $TRAVIS_PULL_REQUEST -eq "false" ]]; then docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; fi
  - if [[ $TRAVIS_PULL_REQUEST -eq "false" ]]; then docker tag -f bgruening/docker-jupyter-notebook bgruening/docker-jupyter-notebook:${TRAVIS_TAG:-$TRAVIS_BRANCH}; docker push bgruening/docker-jupyter-notebook:${TRAVIS_TAG:-$TRAVIS_BRANCH}; fi

Add test for IE helpers
Add test for IE helpers