Skip to content

Commit d792574

Browse files
author
Martin Larralde
committed
Setup Appveyor to compile mzml2isa with pyinstaller
1 parent bce96a0 commit d792574

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

appveyor.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ environment:
55
#- PYTHON: "C:\\Python35"
66
# MAKE_WINEX: 1
77
- PYTHON: "C:\\Python37-x64"
8-
MAKE_WINEX: 0
8+
MAKE_WINEX: 1
99

1010
install:
1111
- '%PYTHON%\python.exe -m pip install -U -r ci\requirements.txt'
12-
- if %MAKE_WINEX%==1 %PYTHON%\Scripts\pip.exe install pyinstaller
12+
#- if %MAKE_WINEX%==1 %PYTHON%\Scripts\pip.exe install pyinstaller
1313

1414
build_script:
1515
- '%PYTHON%\python.exe -m pip install .'
16+
- if %MAKE_WINEX%==1 cd ci\appveyor
17+
- if %MAKE_WINEX%==1 %PYTHON%\Scripts\pyinstaller.exe mzml2isa_cli.spec mzml2isa_cli.py
18+
- if %MAKE_WINEX%==1 cd ..\..
1619

17-
# build_script:
18-
# - if %MAKE_WINEX%==1 cd scripts\for_pyinstaller
19-
# - if %MAKE_WINEX%==1 %PYTHON%\Scripts\pyinstaller.exe mzml2isa_cli.spec mzml2isa_cli.py
20-
# - cd ..\..\
2120
# test_script:
2221
# - mkdir data
2322
# - cd data
@@ -39,16 +38,16 @@ build_script:
3938
# - if %MAKE_WINEX%==1 java -cp ..\..\..\ISA-validator-1.6.5\isatools_deps.jar org.isatools.isatab.manager.SimpleManager validate out_folder\metabolights\MTBLS267_exe ..\..\..\Configurations\MetaboLightsConfig20140506\
4039

4140
before_test:
42-
- 'if %PYTHON%=="C:\\Python27" %PYTHON%\python.exe -m pip install https://pypi.anaconda.org/carlkl/simple/backports-lzma/0.0.3/backports.lzma-0.0.3-cp27-none-win32.whl'
4341
# backports.lzma is pre-built in an alternative PyPI repository
42+
- 'if %PYTHON%=="C:\\Python27" %PYTHON%\python.exe -m pip install https://pypi.anaconda.org/carlkl/simple/backports-lzma/0.0.3/backports.lzma-0.0.3-cp27-none-win32.whl'
4443
- '%PYTHON%\python.exe -m pip install -r tests\requirements.txt'
4544

4645
test_script:
4746
- '%PYTHON%\python.exe -m green'
4847

49-
# artifacts:
50-
# - path: scripts\for_pyinstaller\dist\mzml2isa_cli.exe
51-
# name: mzml2isa_cli
48+
artifacts:
49+
- path: scripts\for_pyinstaller\dist\mzml2isa_cli.exe
50+
name: mzml2isa_cli
5251

5352
deploy:
5453
provider: GitHub
File renamed without changes.
File renamed without changes.
File renamed without changes.

ci/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ codecov
33
green
44
pip
55
setuptools
6-
wheel
6+
wheel
7+
pyinstaller ; sys_platform == 'win32'

0 commit comments

Comments
 (0)