Skip to content

Commit 4eef43b

Browse files
add: windows build
1 parent 4176fa4 commit 4eef43b

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

.travis.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ jobs:
1616
- os: linux
1717
dist: xenial
1818
env: LAZ_VER=1.8.2 RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
19-
- os: osx
20-
osx_image: xcode11.3
21-
env: LAZ_PKG=true LAZ_OPT="--widgetset=cocoa" RELEASE_ZIP_FILE="trackereditor_macOS.zip"
2219
- os: linux
2320
dist: xenial
2421
arch: arm64
2522
env: LAZ_PKG=true RELEASE_ZIP_FILE="trackereditor_linux_AArch64.zip"
26-
23+
- os: osx
24+
osx_image: xcode11.3
25+
env: LAZ_PKG=true LAZ_OPT="--widgetset=cocoa" RELEASE_ZIP_FILE="trackereditor_macOS.zip"
26+
- os: windows
27+
env: LAZ_VER=2.0.8 LAZ_REL=64 LAZ_OPT="--os=win32 --cpu=i386" RELEASE_ZIP_FILE="trackereditor_win32.zip"
2728

2829
before_install:
2930
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install python3 --params "/InstallDir:C:\python3"; fi
@@ -32,10 +33,18 @@ before_install:
3233
install:
3334
# Install prerequisites (fpc/lazarus/wine/qemu)
3435
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install xvfb -y; fi
36+
# Output something every 10 minutes or Travis kills the job
37+
- while sleep 60; do echo "===== 1 minute mark ====="; done &
3538
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then python ./travis-lazarus/.travis.install.py; fi
3639
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then ./travis-lazarus/.travis.install.py; fi
40+
# Killing background sleep loop
41+
- kill %1
3742

3843
script:
44+
# Output something every 10 minutes or Travis kills the job
45+
- echo "start script"
46+
- while sleep 60; do echo "===== 1 minute mark ====="; done &
47+
3948
# Build trackereditor project (Release mode)
4049
- lazbuild --build-mode=Release $LAZ_OPT $PROJECT_LPI_EDITOR_PATH
4150

@@ -45,6 +54,9 @@ script:
4554
# Start the unit test
4655
- source ./scripts/travis_unit_test.sh
4756

57+
# Killing background sleep loop
58+
- kill %1
59+
4860
before_deploy:
4961
# Create the zip file for deployment
5062
- source ./scripts/travis_deploy.sh

scripts/travis_deploy.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/sh
22

3-
# Create a zip file for Linux and Apple macOS
3+
# Create a zip file for Windows, Linux and macOS.
44

5-
6-
#----------- check for Linux and Apple macOS build
5+
#----------- check for Windows, Linux and macOS build
76
if [ "$TRAVIS_OS_NAME" = "linux" ]
87
then
98
# Linux
@@ -28,7 +27,12 @@ then
2827
zip -j ../$RELEASE_ZIP_FILE *.txt
2928
zip -r ../$RELEASE_ZIP_FILE trackereditor.app
3029
cd ..
31-
30+
elif [ "$TRAVIS_OS_NAME" = "windows" ]
31+
then
32+
# Windows
33+
echo "Building zip file for windows"
34+
choco install zip
35+
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor.exe enduser/*.dll
3236
fi
3337

3438
echo "Create Amazon s3 folder"

scripts/travis_unit_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elif [ "$TRAVIS_OS_NAME" = "windows" ]
3333
then
3434
# Exit immediately if a command exits with a non-zero status.
3535
set -e
36-
enduser/test_trackereditor -a --format=plain
36+
enduser/test_trackereditor.exe -a --format=plain
3737
set +e
3838
fi
3939

0 commit comments

Comments
 (0)