Skip to content

Commit 7a082b3

Browse files
chore: build in debug and release mode
When deploy use 'release' build else use 'debug' mode. In future use valgrind for debug testing?
1 parent 7bb09ba commit 7a082b3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,30 @@ install:
3434
# Install prerequisites (fpc/lazarus/wine/qemu)
3535
- ./travis-lazarus/.travis.install.py
3636

37+
# Install valgrind in linux only
38+
# - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install valgrind -y; fi
39+
3740
# install openSSL on macOS
3841
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
3942
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install openssl; fi
4043
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo brew link openssl --force; fi
4144
# - if [ "$TRAVIS_OS_NAME" = "osx" ]; then openssl version; fi
4245

4346
script:
44-
# Build trackereditor project
45-
- lazbuild $LAZ_OPT $LPI_EDITOR_PATH/trackereditor.lpi
47+
# Build trackereditor project (Debug mode)
48+
- lazbuild --build-mode=Debug $LAZ_OPT $LPI_EDITOR_PATH/trackereditor.lpi
4649

47-
# Build unit test project
48-
- lazbuild $LAZ_OPT $LPI_UNIT_TEST_PATH/tracker_editor_test.lpi
50+
# Build unit test project (Debug mode)
51+
- lazbuild --build-mode=Debug $LAZ_OPT $LPI_UNIT_TEST_PATH/tracker_editor_test.lpi
4952

5053
# Start the unit test
5154
- source ./scripts/travis_unit_test.sh
5255

5356
before_deploy:
57+
# Build trackereditor project (Release mode)
58+
- lazbuild --build-mode=Release $LAZ_OPT $LPI_EDITOR_PATH/trackereditor.lpi
59+
60+
# Create the zip file for deployment
5461
- source ./scripts/travis_deploy.sh
5562

5663
deploy:

0 commit comments

Comments
 (0)