File: appveyor.bat

package info (click to toggle)
rifiuti2 0.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 716 kB
  • sloc: ansic: 2,099; xml: 260; makefile: 127
file content (58 lines) | stat: -rw-r--r-- 1,210 bytes parent folder | download
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
@echo off
:: Copyright 2018-2019 Abel Cheung
:: All rights reserved.

set OLDPATH=%PATH%
PATH C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%OLDPATH%

cd %APPVEYOR_BUILD_FOLDER%
goto %1

echo Unknown build target.
exit 1


:build
@echo on

:: Build fails (unresolved dep) w/o updated msys2 runtime :-/
pacman.exe --noconfirm --noprogressbar -Syu

:: Second invocation updates everything else
:: Wastes too much time updating unnecessary non-core stuff
:: pacman --noconfirm --noprogressbar -Syu

pacman.exe --noconfirm --noprogressbar -S --needed markdown mingw-w64-%MSYS2_ARCH%-glib2
bash -lc "autoreconf -f -i -v && ./configure --enable-static && make all"

@echo off
goto :eof


:check
@echo on

file.exe src\rifiuti.exe
ldd.exe  src\rifiuti.exe

file.exe src\rifiuti-vista.exe
ldd.exe  src\rifiuti-vista.exe

bash -lc "make check"

@echo off
goto :eof


:package
@echo on

if "%APPVEYOR_REPO_TAG%" == "true" (
    echo "*** Building official release ***"
    bash -lc "make -f dist-win.mk dist-win"
) else (
    bash -lc "make -f dist-win.mk dist-win ZIPNAME=%APPVEYOR_PROJECT_SLUG%-%APPVEYOR_REPO_COMMIT:~0,8%-win-%MSYS2_ARCH%"
)

@echo off
goto :eof