-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (47 loc) · 2.23 KB
/
appveyor.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
environment:
matrix:
- PYTHON: "C:\\Python27"
MAKE_WINEX: 0
- PYTHON: "C:\\Python35"
MAKE_WINEX: 1
install:
- if %MAKE_WINEX%==1 %PYTHON%\Scripts\pip.exe install pyinstaller
- '%PYTHON%\Scripts\pip.exe install .'
build_script:
- if %MAKE_WINEX%==1 cd scripts\for_pyinstaller
- if %MAKE_WINEX%==1 %PYTHON%\Scripts\pyinstaller.exe nmrml2isa_cli.spec nmrml2isa_cli.py
- cd ..\..\
test_script:
- mkdir data
- cd data
- ps: wget http://ftp.ebi.ac.uk/pub/databases/metabolights/studies/public/MTBLS1/ADG10003u_007.nmrML -O ADG10003u_007.nmrML
- ps: wget http://ftp.ebi.ac.uk/pub/databases/metabolights/studies/public/MTBLS1/ADG10003u_008.nmrML -O ADG10003u_008.nmrML
- ps: Get-Content ADG10003u_007.nmrML -TotalCount 50
- cd ..
# Get ISA validator tools for validating
- ps: wget https://github.com/ISA-tools/ISAvalidator-ISAconverter-BIImanager/releases/download/1.6.5/ISA-validator-1.6.5.zip -o ISA-validator-1.6.5.zip
- unzip ISA-validator-1.6.5.zip
- ps: wget ftp://ftp.ebi.ac.uk/pub/databases/metabolights/submissionTool/ISAcreatorMetaboLights.zip -o ISAcreatorMetaboLights.zip
- unzip ISAcreatorMetaboLights.zip
# Test using just python
- "%PYTHON%\\python.exe -m nmrml2isa -i data -o out_folder\\metabolights -s MTBLS1"
- java -cp ISA-validator-1.6.5\isatools_deps.jar org.isatools.isatab.manager.SimpleManager validate out_folder\metabolights\MTBLS1 Configurations\MetaboLightsConfig20140506\
# test using the windows executable (no python requred)
- if %MAKE_WINEX%==1 cd scripts\for_pyinstaller\dist\
- if %MAKE_WINEX%==1 nmrml2isa_cli.exe -i ..\..\..\data\ -o out_folder\metabolights -s MTBLS1_exe
- if %MAKE_WINEX%==1 java -cp ..\..\..\ISA-validator-1.6.5\isatools_deps.jar org.isatools.isatab.manager.SimpleManager validate out_folder\metabolights\MTBLS1_exe ..\..\..\Configurations\MetaboLightsConfig20140506\
artifacts:
- path: scripts\for_pyinstaller\dist\nmrml2isa_cli.exe
name: nmrml2isa_cli
deploy:
provider: GitHub
description: 'Release description'
auth_token:
secure: a1VIb788bLXA/fLgAoEJshK1aXtGdj79BNvzPg+YfAIrYhp6yaA4gJa6vp4BpWHS
artifact: nmrml2isa_cli
draft: false
prerelease: true
force_update: true
on:
branch: master
appveyor_repo_tag: true