umap/.travis.yml
Jannis Leidel 47bcacaa62
Added Docker setup.
This adds:

- a Dockerfile
- a Docker compose file for easy testing
- a Travis CI setup
  - so that it can build a Docker image and push to Docker Hub automatically
  - it does that on every Git tag as well and push a equally tagged version to Docker Hub
- extends the Makefile to add some helper tasks for docker (e.g. make docker-test)
2017-02-20 16:32:41 +01:00

21 lines
444 B
YAML

sudo: required
language: python
python: 3.5
services:
- docker
install:
- pip install -e .[dev]
script:
- make test
after_success:
- export DOCKER_IMAGE_NAME=umap-project/umap
- docker build -t $DOCKER_IMAGE_NAME:latest .
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
- if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TRAVIS_TAG; fi
- docker push $DOCKER_IMAGE_NAME;