-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (85 loc) · 3.39 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
76
77
78
79
80
81
82
83
84
85
if: tag IS present
language: shell
os: linux
jobs:
include:
- name: "Windows Build"
os: windows
language: shell
before_install:
- ls /c/Users/travis/AppData/Local/Programs/
- choco install python --version=3.7
- which python
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
# required for PyCrypto,
# see: https://stackoverflow.com/a/41843310/12927786
# see jvereinmanager.py for further explanation
- cd "/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build" && ./vcvars64.bat
- export CL="-FI\"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\stdint.h\""
- cd "$TRAVIS_BUILD_DIR"
- pip install -r requirements.txt
- pip install PyInstaller
# PyCrypto on Windows: no module named 'winrandom'
# see: https://stackoverflow.com/a/39478958/12927786
- sed -i "s/import winrandom/from . import winrandom/" "/c/Python37/Lib/site-packages/Crypto/Random/OSRNG/nt.py"
script:
- bash -c echo "Tests would go here"
before_deploy:
- pyinstaller "app.spec"
- ls dist
- name: "macOS Build"
os: osx
language: shell
addons:
homebrew:
packages:
- pyenv
before_install:
- pyenv versions
- pyenv install --list
- sudo env PYTHON_CONFIGURE_OPTS="--enable-framework CC=clang" pyenv install 3.7.5 --verbose
- sudo chown -R travis:staff ~/.pyenv
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv global 3.7.5
- python --version
install:
- pip install -r requirements.txt
- pip install PyInstaller
script:
- echo "Tests would go here"
before_deploy:
- pyinstaller "app.spec"
- zip --junk-paths dist/jverein-multiuser_macos.zip dist/jverein-multiuser
- ls dist
- name: "Linux Build"
os: linux
language: python
python: 3.7
before_script:
- pip install PyInstaller
script:
- echo "Tests would go here"
before_deploy:
- pyinstaller "app.spec"
- zip --junk-paths dist/jverein-multiuser_linux.zip dist/jverein-multiuser
- grep "VERSION = " jvereinmultiuser/app.py|sed -n 's/VERSION = "\(.*\)"/\1/p' > dist/VERSION
- ls dist
deploy:
provider: releases
name: $TRAVIS_TAG (DRAFT)
file_glob: true
file:
- dist/*.zip
- dist/*.exe
- dist/VERSION
skip_cleanup: true
draft: true
api_key:
secure: "ExFtTNkbE52Cw8bchk3svE8MT4rnjpUssxPLDD29R2F+WeMyh7gzdUtJ1isy1l/iDch3RzLkmcHj+u/kMX865Qw/gp/Y40JlVoPA6hwagFDS0NwVRlfx76mUBMplbnV4rUmKkE+GtIYzBlZW9UhTaOABfgjayQPbS837UjwKoHAL/SREc9sEgptgcTWXmiszQ0XTUiCBohzN9mjTvuDA6qWIjQ21nXssCBlSpxIif84KfZLzKOPVBZJD5lVZBuWUNWoTxOmJRO5BmFVwggNcyOrpvBXD7fP9PSvq3Wpk3EtiHGrF1INsLuzOr4G1uy+Qm5DXtFcS2UHMowJhAurTx8JceA1NQN+D71ALis758c8GDZ1ryBB3bbnww7R2ve5v61K2XMwNMQyXGZWnd8JAIeqfeKNOa/fOLA3ePsbjbVFqoJ2Lq9CcejY3qoPLL63lnd0RQQV+OAUOe5Q5ER4Psfylzm/rZBrPkBt7/Ep7+RB1sHAP/rfjfppIPHfD4kz2xvfloaF0QOTgK/vTTLvgA+Rpw5dQvBdunJ8hyexlBwFzenoYbD/rF4vgOytnhuhChmdQci5jQbkgxmA3nrKMRoaluIRcN5lXOnyeBb4c7j+BanmFcoBbUajlcRgaEJoPzwh70MPGYn7FlXJGgq7hbjMn4UN5tWSkC9PxjG9KoxQ="
on:
tags: true
repo: fkuersch/jverein-multiuser
all_branches: true