forked from clefebvre/redshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (43 loc) · 1.84 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
image:
- Visual Studio 2015
environment:
matrix:
- arch: x86_64
- arch: i686
build:
verbosity: detailed
build_script:
- ps: |
If ($env:arch -Match "x86_64") {
$env:MSYSTEM = "MINGW64"
} Else {
$env:MSYSTEM = "MINGW32"
}
$env:CONFIGURE_FLAGS = "--disable-drm --disable-randr --disable-vidmode --enable-wingdi --disable-quartz --disable-geoclue2 --disable-corelocation --disable-gui --disable-ubuntu --disable-nls --host=$env:arch-w64-mingw32"
- ps: md (Join-Path $env:APPVEYOR_BUILD_FOLDER root)
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap"
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --prefix=\"$APPVEYOR_BUILD_FOLDER/root\" $CONFIGURE_FLAGS"
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make distcheck DISTCHECK_CONFIGURE_FLAGS=\"$CONFIGURE_FLAGS\""
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install"
test_script:
- |
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -pv
- |
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -m dummy -vo
- ps: Set-Content -Value "[redshift]`ndawn-time=6:30`ndusk-time=18:00-19:30`n" -Path time.config
- |
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -c time.config -pv
- |
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -c time.config -m dummy -vo
after_build:
- ps: |
$ZIP_NAME = "redshift-windows-$env:arch"
$ZIP_FILE = "redshift-windows-$env:arch.zip"
md $ZIP_NAME
Copy-Item -Path $env:APPVEYOR_BUILD_FOLDER\root\bin\redshift.exe -Destination $ZIP_NAME
Copy-Item -Path README.md -Destination $ZIP_NAME/README.txt
Copy-Item -Path NEWS.md -Destination $ZIP_NAME/NEWS.txt
Copy-Item -Path COPYING -Destination $ZIP_NAME/COPYING.txt
Copy-Item -Path redshift.conf.sample -Destination $ZIP_NAME
7z a $ZIP_FILE $ZIP_NAME/
- ps: Push-AppveyorArtifact $ZIP_FILE