-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
65 lines (56 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
language: python
dist: focal
cache: pip
notifications:
email: true
matrix:
include:
- python: 3.9
before_script:
- >-
[ -z "${TRAVIS_TAG}" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
&& openssl aes-256-cbc -K $encrypted_d4a185972ecc_key -iv $encrypted_d4a185972ecc_iv -in pdns.env.enc -out pdns.env -d || true
&& openssl aes-256-cbc -K $encrypted_3d8a3eb98382_key -iv $encrypted_3d8a3eb98382_iv -in transit.env.enc -out transit.env -d || true
&& openssl aes-256-cbc -K $encrypted_27cb64608ff6_key -iv $encrypted_27cb64608ff6_iv -in dl.env.enc -out dl.env -d || true
&& openssl aes-256-cbc -K $encrypted_fc092b9428d6_key -iv $encrypted_fc092b9428d6_iv -in cis.env.enc -out cis.env -d || true
&& openssl aes-256-cbc -K $encrypted_89a9eb4f9417_key -iv $encrypted_89a9eb4f9417_iv -in dns.env.enc -out dns.env -d || true
- python: 3.8
- python: 3.10
- python: 3.11
before_install:
- sudo apt-get update
- sudo apt-get install pandoc
- pip install pypandoc
- echo -e "machine github.ibm.com\n login $GH_TOKEN" > ~/.netrc
install:
- sudo rm /etc/apt/sources.list.d/mongodb-4.4.list
- wget -O- https://pgp.mongodb.com/server-4.4.asc | sudo gpg --dearmor -o /usr/share/keyrings/mongodb-4.4.gpg
- echo "deb [signed-by=/usr/share/keyrings/mongodb-4.4.gpg] http://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-4.4.list
- pip install tox-travis
script: tox
before_deploy:
- nvm install 20
- npm install npm@latest -g
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
- npm install @semantic-release/github
- pip install bump2version
deploy:
- provider: script
script: npx semantic-release
skip_cleanup: true
on:
python: '3.9'
all_branches: true # Allow semantic-release on any branch triggered by tags
#branch: master
tags: true
- provider: pypi
setuptools_version: "60.8.2"
user: __token__
password: $PYPI_TOKEN
repository: https://upload.pypi.org/legacy
skip_cleanup: true
on:
python: '3.9'
tags: true