forked from GNS3/dynamips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
35 lines (31 loc) · 1.38 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
platform:
- x86
environment:
global:
CYG_ROOT: C:/cygwin
CYG_CACHE: C:/cygwin/var/cache/setup
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
CC: gcc
matrix:
- CYG_ARCH: x86
install:
- 'appveyor DownloadFile http://cygwin.com/setup-%CYG_ARCH%.exe -FileName setup.exe'
- 'setup.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P make -P gcc-core -P cmake >NUL'
- 'appveyor DownloadFile http://www.mr511.de/software/libelf-0.8.13.tar.gz'
- 'mkdir libelf && tar xvzf libelf-0.8.13.tar.gz -C libelf'
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/libelf/libelf-0.8.13 && ./configure && make && make install'
- 'cinst 7zip.commandline'
- 'cinst winpcap'
- 'appveyor DownloadFile http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip'
- 'dir'
- '7za x .\WpdPack_4_1_2.zip -o.'
- 'xcopy .\WpdPack\Lib\libwpcap.a C:\cygwin\lib'
- 'xcopy .\WpdPack\Lib\libpacket.a C:\cygwin\lib'
- 'xcopy /Y /E .\WpdPack\Include\*.* C:\cygwin\usr\include\'
build_script:
- '%CYG_ROOT%/bin/bash -lc "ls $APPVEYOR_BUILD_FOLDER'
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER && mkdir -p build'
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build && cmake ..'
- '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER/build && make'
artifacts:
- path: 'build/stable/dynamips.exe'