-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
65 lines (61 loc) · 2.43 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
# Discussed at https://travis-ci.community/t/python-support-on-windows/241/18
#
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3.7 on Xenial Linux"
script:
- pip3 install -r external/requirements.txt
- pyinstaller -F external/configure_panorama.py
- cp dist/configure_panorama modules/panorama/configure_panorama.exe
- zip -ur bundle-linux.zip variables.tf example.tfvars README.md modules main.tf external
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
deploy:
- provider: releases
api_key: $api_token
file:
- "bundle-linux.zip"
skip_cleanup: true
on:
tags: true
- name: "Python 3.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python
- choco install zip
# Note in the script below we rename the exe to just configure_panorama to keep it consistant between OS
script:
- pip3 install -r external/requirements.txt
- pyinstaller -F external/configure_panorama.py
- cp dist/configure_panorama.exe modules/panorama/configure_panorama.exe
- zip -ur bundle-windows.zip variables.tf example.tfvars README.md modules main.tf external
deploy:
- provider: releases
api_key: $api_token
file:
- "bundle-windows.zip"
skip_cleanup: true
on:
tags: true
- name: "Python on macOS"
os: osx
osx_image: xcode12 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
script:
- pip3 install -r external/requirements.txt
- pyinstaller -F external/configure_panorama.py
- cp dist/configure_panorama modules/panorama/configure_panorama.exe
- zip -ur bundle-macOS.zip variables.tf example.tfvars README.md modules main.tf external
deploy:
- provider: releases
api_key: $api_token
file:
- "bundle-macOS.zip"
skip_cleanup: true
on:
tags: true
notifications:
email: false