-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (39 loc) · 1.36 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
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
dist: bionic # required for Python >= 3.7
after_success:
- mv ./dist/im_filter ./im_filter_ubuntu
- name: "Python 3 on macOS Sierra"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
after_success:
- mv ./dist/im_filter ./im_filter_osx
- name: "Python 3 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python
- python -m pip install --upgrade pip
after_success:
- mv ./dist/im_filter.exe ./im_filter_win.exe
- ls
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- python3 -m pip install -r requirements.txt || python -m pip install -r requirements.txt
script:
- pyinstaller -F source_script/im_filter.py
deploy:
skip_cleanup: true
api_key: $API_KEY
file:
- "im_filter_ubuntu"
- "im_filter_osx"
- "im_filter_win.exe"
provider: releases
on:
tags: true
overwrite: true