/
.travis.yml
42 lines (35 loc) · 997 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
language: python
services:
- docker
python:
# PyPy versions
- "3.5"
- "3.7"
- "pypy3.5"
install:
- pip install python-coveralls pylint
- pip install .
# run tests
script:
- PYTHONPATH=${PWD} pylint certbot_dns_acmedns/
- pytest -v
- pip install .
- COMPOSE_PROJECT_NAME="certbotacmedns_$TRAVIS_JOB_ID" docker-compose run setup
- sleep 5
- docker build -t certbot_acmedns_client -f test/Dockerfile test/
- docker run -it --rm --network "certbotacmedns_${TRAVIS_JOB_ID}_default" --dns "10.151.40.100" -v $PWD:/certbot-dns-acmedns certbot_acmedns_client sh -c 'pip3 install -e /certbot-dns-acmedns && /certbot-dns-acmedns/test/e2e_test.sh'
after_script:
- COMPOSE_PROJECT_NAME="certbotpdns_$TRAVIS_JOB_ID" docker-compose down
jobs:
include:
- stage: deploy
script: skip
install: skip
deploy:
provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
after_success:
- coveralls