forked from nxp-imx/mfgtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
79 lines (51 loc) · 2.09 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
version: 1.2.{build}
image:
- Visual Studio 2017
- Ubuntu1804
configuration:
- Debug
- Release
platform:
- x86
- x64
init:
- sh: if [ "${CONFIGURATION}" = "Debug" ] ; then exit 0; fi
- sh: if [ "${PLATFORM}" = "x86" ]; then exit 0; fi
install:
- cmd: echo %APPVEYOR_BUILD_FOLDER%
- cmd: git submodule update --init
- cmd: cd %APPVEYOR_BUILD_FOLDER%\libusb
- cmd: git apply ..\msvc\0001-Static-link-C-library.patch
- cmd: cd ..
- sh: sudo apt-get update
- sh: sudo apt-get --yes --force-yes install libusb-1.0-0-dev
- sh: sudo apt-get --yes --force-yes install libzip-dev
- sh: sudo apt-get --yes --force-yes install libbz2-dev
- sh: sudo apt-get --yes --force-yes install asciidoc
- sh: sudo apt-get --yes --force-yes install rename
build_script:
- cmd: msbuild %APPVEYOR_BUILD_FOLDER%/msvc/uuu.sln /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: msbuild %APPVEYOR_BUILD_FOLDER%/msvc/uuu-static-link.sln /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: if exist %APPVEYOR_BUILD_FOLDER%\x64\release\lib\uuu.exe cp %APPVEYOR_BUILD_FOLDER%\x64\release\lib\uuu.exe %APPVEYOR_BUILD_FOLDER%\uuu.exe
- sh: cmake .
- sh: make
- sh: git clone https://github.com/NXPmicro/mfgtools.wiki.git
- sh: cd mfgtools.wiki
- sh: rename -f 's/\.asciidoc$//' *
- sh: echo "<revhistory>" > UUU-docinfo.xml
- sh: git log -n25 --reverse --format="format:<revision><revnumber>%h</revnumber><date>%cd</date><authorinitials>%an</authorinitials><revremark>%s</revremark></revision>" >> UUU-docinfo.xml
- sh: echo "</revhistory>" >> UUU-docinfo.xml
- sh: a2x -L -a docinfo UUU
artifacts:
- path: uuu.exe
- path: uuu/uuu
- path: mfgtools.wiki/UUU.pdf
before_deploy:
- cmd: ''
deploy:
- provider: GitHub
description: prebuild for $(APPVEYOR_REPO_COMMIT) \n\n $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: SWWVkwSfPyVIaPChBBl+uAA3Fau9Rl5iNPQ9VRL8yyggXvc6wPcr/O9iXBMVM7Ju
artifact: uuu.exe; libusb-1.0.dll; uuu/uuu; mfgtools.wiki/UUU.pdf
draft: true