forked from RuleWorld/bionetgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
93 lines (78 loc) · 3.4 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
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
86
87
88
89
90
91
92
os: unstable
environment:
PYTHON: "C:\\Python36-x64"
matrix:
- builder: cygwin
platform: x86
- builder: cygwin
platform: x64
branches:
only:
- master
- release
before_build:
- cmd: ECHO this is batch %APPVEYOR_ACCOUNT_NAME%
- uname -a
install:
- choco install curl
- if "%builder%"=="cygwin" ( if "%platform%"=="x86" ( C:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P openssl-devel -P libiodbc-devel -P libiodbc2 -P odbc-mysql -P odbc-pgsql -P odbc-sqlite3 -P libmysqlclient-devel -P libsqlite3-devel -P libcrypt-devel -P zip))
- if "%builder%"=="cygwin" ( if "%platform%"=="x64" ( C:\cygwin64\setup-x86_64.exe -qnNdO -R C:/cygwin64 -s http://cygwin.mirror.constant.com -l C:/cygwin64/var/cache/setup -P openssl-devel -P libiodbc-devel -P libiodbc2 -P odbc-mysql -P odbc-pgsql -P odbc-sqlite3 -P libmysqlclient-devel -P libsqlite3-devel -P libcrypt-devel -P zip))
- if "%builder%"=="cygwin" ( if "%platform%"=="x86" ( set "PATH=C:\cygwin\bin;%PATH%" ; set "TRAVIS_OS_NAME=Win32" ))
- if "%builder%"=="cygwin" ( if "%platform%"=="x64" ( set "PATH=C:\cygwin64\bin;%PATH%" ; set "TRAVIS_OS_NAME=Win64" ))
- choco install -r -y ninja
- cmd: ECHO %PATH%
build_script:
- git submodule init
- git submodule update
- cd ./bng2
- mkdir bin
# build atomizer
- cd ./atomizer/SBMLparser
- "%PYTHON%\\python.exe -m pip install --user -r ./requirements_win.txt"
- "%PYTHON%\\python.exe -m pip install --target=. python-libsbml"
- "%PYTHON%\\python.exe -m PyInstaller ./sbmlTranslator.spec"
- mv ./dist/sbmlTranslator.exe ../../bin
- cd ../..
# build nfsim
- cd ./nfsim_src
- mkdir build
# build the 32bit nfsim executable
- if "%platform%"=="x86" ( move CMakeLists.txt CMakeLists.x64.txt )
- if "%platform%"=="x86" ( copy CMakeLists.x86.txt .\CMakeLists.txt )
- if "%platform%"=="x86" ( cd build )
- if "%platform%"=="x86" ( copy C:\cygwin\bin\gcc.exe C:\cygwin\bin\cc.exe )
# build the 64bit nfsim executable
- if "%platform%"=="x64" ( cd build )
- if "%platform%"=="x64" ( copy C:\cygwin64\bin\gcc.exe C:\cygwin64\bin\cc.exe )
- cmake -G "Ninja" ..
- ninja
- if "%platform%"=="x86" (cp C:\cygwin\bin\cygwin1.dll ..\..\bin)
- if "%platform%"=="x86" (cp C:\cygwin\bin\cygstdc++-6.dll ..\..\bin)
- if "%platform%"=="x86" (cp C:\cygwin\bin\cygz.dll ..\..\bin)
- if "%platform%"=="x64" (cp C:\cygwin64\bin\cygwin1.dll ..\..\bin)
- if "%platform%"=="x64" (cp C:\cygwin64\bin\cygstdc++-6.dll ..\..\bin)
- if "%platform%"=="x64" (cp C:\cygwin64\bin\cygz.dll ..\..\bin)
- if "%platform%"=="x64" (cp C:\cygwin64\bin\cyggcc_s-seh-1.dll ..\..\bin)
- cp NFsim.exe ..\..\bin
- cd ../..
- cmd: ECHO %PATH%
- cd ./Network3 && mkdir -p m4 && cd .. && perl make_dist.pl --build --validate --bindir ./bin
- 7z a ./BioNetGen-2.4.0-Win-%platform%.zip ./BioNetGen-2.4.0
artifacts:
- path: "./bng2/BioNetGen-2.4.0-Win-%platform%.zip"
name: bionetgen
type: zip
deploy:
- provider: BinTray
username: jczech
subject: jczech
api_key:
# api key from https://bintray.com/profile/edit
# encrypted in https://ci.appveyor.com/tools/encrypt
secure: XzrXGPWsRRrx8DZTJSNJpLkMZrxlXF2vdeao4CCBiXUtKBuxR7Nj2CQIBy3L3bSB
repo: bionetgen
package: bionetgen
version: 1.0
artifact: bionetgen
publish: true
override: true