-
Notifications
You must be signed in to change notification settings - Fork 89
/
.travis.yml
56 lines (48 loc) · 1.97 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
os: linux
dist: bionic
language: python
services:
- docker
python:
- '3.8'
- '3.9'
- '3.10'
env:
- DOCKER_COMPOSE_VERSION=1.27.3
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:
- pip install -r requirements.txt
script:
- python -m unittest discover tests
- cd tests/e2e
- bash test.sh
before_deploy:
- python3 -m pip install --upgrade setuptools
jobs:
include:
- stage: Deploy to PyPI
script: skip
deploy:
provider: pypi
username: idealista
password:
secure: vGEjnrN5N3KlYHA/3LC+uJpW2lr1sZCUahNz0OjycNg/oKB1CZuQx0TuiXF/i8DnqnYpfW+tpFEjSwa2TqJIKhrQFf9yLUblr/Ky9H8VXzyLWI+DN3t3EbCg9QWRGuC7RJm57PZkjfMR6RewHNqpjAlzkRE4kLP7CItJYJNOapXDpUIGccPucubprPs0AGL0roNG8fhs9goyeHD05es6OCS1v1LO9j91mDMno+XH2yNwSFmVHRFbzdZP+jHqx8L4dI+mlOIK2iATW1JTCyGWRHBqfb8w7Pi97r4qWpl76OduFH8b6Ldg5adIFgXFzyTUpZUNmenFLji9FwxXUWTQHCtRWzSx6SfN1ebaaqyCA84+p12pEXXee2xLhw04pWLrHHk22FnleEcL+Us80s50+lWCZz0MiakyTCVE+0YJuW/CT25RNGZvOvtrqyZCXFi2OO2Nu8NIbCKjvehNKpXCFdJLBBJcUAOmNz667ELEs8OTzFqxzJwykkxW+zwvxNc3/T5P1v1q8lUbxml3qSKfzvmyirXH1v0D/GMXuQdDqw3oBdjJb304bSsiWJ0l1YCYRkl7fV9bnO0WboEqJG6HJGX3Pt1GgQIrIu/DnBZOnUiSFwaqH4nh1pyYzEHqTAxPsmIaVtYkTgJOkoZXZLtLv0CefB5jo3SmLF1g3qGDRCc=
on:
tags: true
skip_existing: true
- stage: Deploy to DockerHub
before_deploy:
- cd ../..
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t prom2teams .
- docker tag prom2teams $DOCKER_USERNAME/prom2teams:latest
- docker tag prom2teams $DOCKER_USERNAME/prom2teams:$TRAVIS_TAG
deploy:
provider: script
script: docker push $DOCKER_USERNAME/prom2teams:$TRAVIS_TAG && docker push $DOCKER_USERNAME/prom2teams:latest
on:
tags: true