-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
71 lines (67 loc) · 2.38 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
66
67
68
69
70
language: python
jobs:
include:
- name: "Python 3.6 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.6.8
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
- choco uninstall -y mingw
- choco upgrade --no-progress -y msys2
- export msys2='cmd //C RefreshEnv.cmd '
- export msys2+='& set MSYS=winsymlinks:nativestrict '
- export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
- export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
- export msys2+=" -msys2 -c "\"\$@"\" --"
- $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain
- export PATH=/C/tools/msys64/mingw64/bin:$PATH
- export MAKE=mingw32-make
- $msys2 pacman -S mingw-w64-x86_64-gtk3 --noconfirm
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "Python 3.7 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.7.4
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
- choco uninstall -y mingw
- choco upgrade --no-progress -y msys2
- export msys2='cmd //C RefreshEnv.cmd '
- export msys2+='& set MSYS=winsymlinks:nativestrict '
- export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
- export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
- export msys2+=" -msys2 -c "\"\$@"\" --"
- $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain
- export PATH=/C/tools/msys64/mingw64/bin:$PATH
- export MAKE=mingw32-make
- $msys2 pacman -S mingw-w64-x86_64-gtk3 --noconfirm
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: 3.8
before_install:
- python --version
- pip install -U pip
- pip install -U pytest
install:
- pip install -r requirements.txt
script: "pytest test.py"
deploy:
provider: pypi
user: "__token__"
password: "$PYPI_PASSWORD"
distributions: "sdist bdist_wheel --verbose"
skip_existing: true
skip_upload_docs: true
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux