mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 13:41:49 +02:00

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)
21 lines
444 B
YAML
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;
|