-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (48 loc) · 1.74 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
sudo: required
jobs:
include:
- stage: style
os: linux
language: python
python: 3.6
script:
- pip install --editable .[ci,dev]
- python check.py
- coveralls || true
- stage: deploy
os: linux
dist: trusty
language: python
python: 3.6
script:
- python release.py
- stage: deploy
os: osx
language: generic
script:
- sudo mv $(which python) $(which python)2
- curl -LO https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.6.pkg
- sudo installer -package python-3.6.8-macosx10.6.pkg -target /
- sudo ln -s $(which python3) /usr/local/bin/python
- curl https://bootstrap.pypa.io/get-pip.py | python
- sudo mv $(which pip) $(which pip)2
- sudo ln -s $(which pip3) /usr/local/bin/pip
- export PATH=$PATH:$(dirname $(which pip3))
- chmod +x '/Applications/Python 3.6/Install Certificates.command'
- sh '/Applications/Python 3.6/Install Certificates.command'
- python release.py
- stage: deploy
os: windows
language: bash
script:
- mv $(which python) $(which python)2;
- choco install python3
- export PATH=$PATH:/c/Python37:/c/Python38:/c/Python39
- cp $(which python) $(dirname $(which python))/python3
- export PYTHONIOENCODING=UTF-8
- python release.py
stages:
- name: style
if: NOT (type = api)
- name: deploy
if: (tag IS present) AND (tag =~ /^(\d+)\.(\d+)\.(\d+)(\.\d+)?$/)