-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
32 lines (28 loc) · 916 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
language: python
python:
- "3.7"
services:
- docker
branches:
only:
- master
- release-.+
jobs:
include:
- stage: Test build on project; smoketest
if: type = pull_request
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- docker build -t datascience-kit .
- stage: Deploy project to DockerHUB
if: type = push && branch = master
before_script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t datascience-kit .
- docker tag datascience-kit $DOCKER_USERNAME/datascience-kit:$(cat VERSION)
- docker tag datascience-kit $DOCKER_USERNAME/datascience-kit:latest
script:
- docker push $DOCKER_USERNAME/datascience-kit:$(cat VERSION)
- docker push $DOCKER_USERNAME/datascience-kit:latest