forked from pan-net-security/certbot-dns-powerdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 881 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
43
44
45
46
47
48
language: python
services:
- docker
env:
- POWERDNS_VERSION="4.1.10"
- POWERDNS_VERSION="v4.2.0"
# uses default POWERDNS_VERSION in docker-compose.yml
python:
# PyPy versions
- "3.6"
- "3.7"
- "3.8"
- "pypy3"
install:
- pip install python-coveralls
- pip install .
# run tests
script:
- pytest
- pip install .
- COMPOSE_PROJECT_NAME="certbotpdns_$TRAVIS_JOB_ID" docker-compose run setup
- sleep 5
- chmod 0500 test/pdns-credentials.ini
- ./test/run_certonly.sh test/pdns-credentials.ini
after_script:
- COMPOSE_PROJECT_NAME="certbotpdns_$TRAVIS_JOB_ID" docker-compose down
jobs:
include:
- stage: deploy
env: POWERDNS_VERSION=none
script: skip
install: skip
deploy:
provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
after_success:
- coveralls