-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
68 lines (65 loc) · 2.87 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
language: python
jobs:
include:
- os: linux
- os: windows
language: shell
# Don't use "C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/opt/bin/python.exe"
env: PATH=/c/tools/python-x86_32:/C/Users/travis/AppData/Roaming/Python/Scripts:$PATH
install:
## WinXP x86
# - choco install python3 --forcex86 --version=3.4.4.20200110 # last supporting Windows XP
## pip 19.2 drops support for python 3.4 (despite 19.3.1 been working fine)
# - python -m pip install --user --upgrade pip==19.1.1
## Key '--user' is mandatory outside virtualenv 'language: python'
## pyinstaller 4.0 drops support for python 3.4
# - python -m pip install --user pyinstaller==3.5 # pyinstaller==3.6 is missing
## Win7 x86
- choco install python3 --forcex86 --version=3.8.10
- python -m pip install --user --upgrade
- python -m pip install --user pyinstaller
- os: osx
language: shell
install:
# - brew upgrade python
# - brew install tree
# Travis has python3 preinstalled with Brew to `/usr/local/bin/python3`
# python2 is default python for Mac
- unlink /usr/local/bin/python
- ln -s /usr/local/bin/python3 /usr/local/bin/python
- python -m pip install --user --upgrade pip
- python -m pip install --user pyinstaller
# - pip3 install pipenv
# - pipenv --three
# - pipenv run pip install pyinstaller
# These scripts should be able to build project on Travis and locally
script:
- python --version
- python -m unittest
- echo "Running script on $TRAVIS_OS_NAME platform"
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
echo "Windows script start";
.\\build.bat;
echo "Windows script end";
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "OS X script start";
./build_osx.sh;
echo "OS X script end";
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "Linux script start";
echo "Linux script end";
fi
deploy:
provider: releases
token:
secure: bg9dutWoSyTDJ8nHXwWoOlQlrFzicmxU7yn17rxzSrpfgOeKuXkT4rJS+5HFtSRwNaLwj/Fts/JZ8HQmnopK5MaCLqNkF8AdgY/yPqPtBFF26t3V7dcniDEwoCUMWpMiitleUBZexxJNGcv1V8WFLN3ylWvHDnHEfOZMwGI6RqilLnK6FdDnhZFcP8CzRB9RRgcV/SwcgkOMf7ZnaaD2D2epLQsOgjeZCV8S4NLABFMX5c0yVBcCVW1/W9coCFwmwOCrFxkrLPoYbLMnlHIMzljgW5SQc7r386zRLmSA8CUGdgcBwn0nQzz/yZ5UQjRGr6DRsTg98mDpTSDcW+y7rZaqzrPnsuQwAKciuywBYvp3Q2m+DXrcD7Ve5j2J991GqrcBCh9Mh4bpWLw6aLoTA7PVM64lFZ+epxi1EvdkbOYLV5dqjidoazYwyFFuOynsZlT8QZdbwXG8l0DTEw8apn337+A2RiuryGicl8Z74KOpRuPfpqKwr+q7gTiOx2Ru3ET2OXwu9TI+ToRQOwuGqwCAgs2uT2is/dWcMjtp52qsQx4UvlPD7fPJ6nRBzOEJqtDg5qB0/2CWnoCqpzePbXKT3btgy8rxp4RWLIlcwmXTqY6w96rJFHGbGOp5Johs5p/7T3Q3DRWyAyMzSd24BEqHLFWr+I5KmGeJXYaugNg=
file_glob: true
file: "dist/heval*"
skip_cleanup: true
draft: true
# prerelease: true
overwrite: true
on:
repo: radioxoma/heval
tags: true
condition: "\"$TRAVIS_OS_NAME\" != \"linux\""