-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (40 loc) · 921 Bytes
/
.travis.yml
File metadata and controls
40 lines (40 loc) · 921 Bytes
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
language: python
python:
- 3.7
- 3.8
cache: pip
before_install:
#- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- npm install npm@latest -g
install:
- pip3 install tox-travis
before_script:
#- python3 -c 'import os,sys; os.set_blocking(sys.stdout.fileno(), True)'
- pip3 install -r requirements.txt
script:
- pip3 install -U python-dotenv
- tox
before_deploy:
- pip3 install bumpversion pypandoc
- sudo apt-get update
- sudo apt-get install pandoc
- nvm install 12
- npm install @semantic-release/changelog
- npm install @semantic-release/exec
- npm install @semantic-release/git
- npm install @semantic-release/github
deploy:
- provider: script
script: npx semantic-release
skip_cleanup: true
on:
python: 3.7
branch: master
- provider: pypi
user: "$PYPI_USER"
password: "$PYPI_PASSWORD"
server: https://upload.pypi.org/legacy/
skip_cleanup: true
on:
python: 3.7
tags: true