Skip to content

Commit 6de4def

Browse files
committed
Fix bash if spacing in travis config and script for ubuntu test
1 parent c2468df commit 6de4def

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ before_install:
2424
script:
2525
- chmod u+x $TRAVIS_BUILD_DIR/tests/travis/script.sh
2626
- docker run -e TRAVIS_BRANCH -e BUILD_TYPE -e DISTRO -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:$DISTRO /pdalc/tests/travis/script.sh
27-
- if ["$DISTRO" = "ubuntu"]; then sonar-scanner; fi
27+
- if [ "$DISTRO" = "ubuntu" ]; then sonar-scanner; fi

tests/travis/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
gcc --version
44
g++ --version
55

6-
if ["$DISTRO" = "ubuntu"]; then
6+
if [ "$DISTRO" = "ubuntu" ]; then
77
# Download and unzip the sonarcloud build wrapper
88
curl -LsS https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip
99
unzip build-wrapper-linux-x86.zip
@@ -19,7 +19,7 @@ mkdir -p "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1919
cd "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
2020
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPDALC_GCC_PARAM_GGC_MIN_HEAPSIZE=8192 "$CI_PROJECT_DIR"
2121

22-
if ["$DISTRO" = "ubuntu"]; then
22+
if [ "$DISTRO" = "ubuntu" ]; then
2323
$SONARCLOUD_DIR/build-wrapper-linux-x86-64 --out-dir $CI_PROJECT_DIR/bw-output make
2424
else
2525
make

0 commit comments

Comments
 (0)