-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (34 loc) · 964 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
33
34
35
36
37
38
39
40
41
42
sudo: required
services:
- docker
env:
global:
- DOCKER_COMPOSE_VERSION=1.25.0
matrix:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
- PYTHON_VERSION=3.8
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- sed -e 's/${PYTHON_VERSION}/'${PYTHON_VERSION}/g Dockerfile.tmpl > Dockerfile
before_script:
- docker-compose up -d --build
- docker-compose run --rm robot python tests/pre_data/pre_data.py
script:
- docker-compose run --rm robot robot --pythonpath src tests
after_script:
- docker-compose down
jobs:
include:
- stage: deploy
deploy:
provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
skip_existing: true
on:
tags: true