Skip to content

Commit f6d504c

Browse files
move RELEASE_ZIP_FILE to .travis.yml
These constant variable belong in travis file.
1 parent fcd46b0 commit f6d504c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ matrix:
1818
include:
1919
- os: linux
2020
dist: xenial
21-
env: LAZ_VER=1.8.2
21+
env: LAZ_VER=1.8.2 RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
2222
- os: osx
2323
osx_image: xcode9.4
24-
env: LAZ_VER=2.0.4
24+
env: LAZ_VER=2.0.4 RELEASE_ZIP_FILE="trackereditor_macOS.zip"
2525

2626
before_install:
2727
# Start virtual display server

scripts/travis_deploy.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22

33
# Create a zip file for Linux and Apple macOS
44

5-
# This will be set later
6-
unset RELEASE_ZIP_FILE
75

86
#----------- check for Linux and Apple macOS build
97
if [ "$TRAVIS_OS_NAME" = "linux" ]
108
then
119
# Linux
1210
echo "Building zip file for Linux amd64"
13-
export RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
1411
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor
1512

1613
elif [ "$TRAVIS_OS_NAME" = "osx" ]
1714
then
1815
# Apple macOS
1916
echo "Building zip file for macOS"
20-
export RELEASE_ZIP_FILE="trackereditor_macOS.zip"
2117
cd enduser
2218

2319
# Move the executable to the application bundle

0 commit comments

Comments
 (0)