This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (65 loc) · 1.91 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
71
72
73
74
75
os: linux
dist: xenial
language: python
addons:
homebrew:
packages:
- p7zip
jobs:
include:
- name: Lint Project With flake8
cache: pip
before_install: skip
install: pip install flake8
script: flake8 .
before_script: skip
after_success: skip
after_deploy: skip
deploy:
- name: PyInstaller Build - Mac
if: commit_message =~ /\[build\]/ || commit_message =~ /\[mac\]/
os: osx
language: shell
osx_image: xcode11
before_install: pip3 install --upgrade shovel
before_deploy: shovel app.publishApp Mac $TRAVIS_TAG
- name: PyInstaller Build - Windows 32 bit
if: commit_message =~ /\[build\]/ || commit_message =~ /\[win32\]/
os: windows
language: shell
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python --version 3.7.6 --forcex86
- choco install innosetup --forcex86
- choco install 7zip --forcex86
- pip3 install --upgrade shovel
before_deploy: shovel app.publishApp Windows_32bit $TRAVIS_TAG
- name: PyInstaller Build - Windows 64 bit
if: commit_message =~ /\[build\]/ || commit_message =~ /\[win64\]/
os: windows
language: shell
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python --version 3.7.6
- choco install innosetup
- choco install 7zip
- pip3 install --upgrade shovel
before_deploy: shovel app.publishApp Windows_64bit $TRAVIS_TAG
install: shovel app.installDeps pip3
before_script: shovel app.buildAppDebug
script: shovel app.runAppDebug
after_success:
- shovel app.cleanAppDebug
- shovel app.buildApp
deploy:
provider: releases
token: $RELEASE_TOKEN
file_glob: true
file:
- JNote_*.zip
- JNote_*.exe
skip_cleanup: true
draft: true
on:
tags: true
after_deploy: shovel app.cleanApp