Skip to content

Commit c129e59

Browse files
committed
Appveyor, Travis: Test run redshift after build
1 parent 00e2d53 commit c129e59

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.travis.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,28 @@ addons:
2828
# GUI
2929
- python3
3030

31-
install: |
31+
before_install: |
3232
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
3333
brew install gettext
3434
brew link --force gettext
3535
brew install intltool
3636
brew install python3
3737
fi
3838
39-
script:
39+
install:
4040
- ./bootstrap
41+
- mkdir "$TRAVIS_BUILD_DIR/root"
4142
- |
4243
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
43-
./configure --enable-drm --enable-vidmode --enable-randr --enable-geoclue2 --enable-gui
44+
./configure --prefix="$TRAVIS_BUILD_DIR/root" --enable-drm --enable-vidmode --enable-randr --enable-geoclue2 --enable-gui
4445
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
45-
./configure --enable-corelocation --enable-quartz --enable-gui
46+
./configure --prefix="$TRAVIS_BUILD_DIR/root" --enable-corelocation --enable-quartz --enable-gui
4647
fi
48+
- make -j2 install
4749
- make -j2 distcheck
50+
51+
script:
52+
- |
53+
"$TRAVIS_BUILD_DIR"/root/bin/redshift -l 12:-34 -pv
54+
- |
55+
"$TRAVIS_BUILD_DIR"/root/bin/redshift -l 12:-34 -m dummy -vo

appveyor.yml

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ build_script:
2525
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make distcheck DISTCHECK_CONFIGURE_FLAGS=\"$CONFIGURE_FLAGS\""
2626
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install"
2727

28+
test_script:
29+
- |
30+
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -pv
31+
%APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -m dummy -vo
32+
2833
after_build:
2934
- ps: |
3035
$ZIP_NAME = "redshift-windows-$env:arch"

0 commit comments

Comments
 (0)