-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
.travis.yml
43 lines (39 loc) · 1.32 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
os: linux
dist: focal
language: python # this works for Linux but is an error on macOS or Windows
jobs:
include:
- name: "Python 3.8.3 on Linux"
python: 3.8
- name: "Python 3.8.5 on macOS"
os: osx
osx_image: xcode12 # Python 3.8.2 running on macOS 10.15.6
language: shell # 'language: python' is an error on Travis CI macOS
# python: 3.8 # 'python:' is ignored on Travis CI macOS
before_install: python3 --version ; pip3 --version ; sw_vers
- name: "Python 3.8.5 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
# python: 3.8 # 'python:' is ignored on Travis CI Windows
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python --version 3.8.5 # this install takes at least 1 min 30 sec
install:
- ./.travis/install.sh
script:
- python --version
- codespell . --ignore-words-list=hist,ba --quiet-level=2
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- pytest
before_deploy:
- ./.travis/build_binaries.sh
deploy:
provider: releases
token: $RELEASE_TOKEN
skip_cleanup: true
file_glob: true
file:
- dist/kb_*
on:
tags: true
name: $TRAVIS_TAG