Skip to content

Commit 6986daf

Browse files
dmrubalexellis
authored andcommitted
Fixed Travis CI configuration and build.sh script
Travis CI uses by default ruby language so set it to minimal instead. Travis CI uses dash as POSIX shell, requiring strict POSIX syntax in build.sh script. Signed-off-by: Dmitri Rubinstein <[email protected]>
1 parent 9e889be commit 6986daf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sudo: required
2+
language: minimal
23
services:
34
- docker
45
addons:

build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ if [ ! "$arch" = "x86_64" ] ; then
77
exit 1
88
fi
99

10-
if [ ! $http_proxy == "" ]
10+
if [ ! "$http_proxy" = "" ]
1111
then
12-
docker build --no-cache --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -t functions/of-watchdog:build .
12+
docker build --no-cache --build-arg "https_proxy=$https_proxy" --build-arg "http_proxy=$http_proxy" -t functions/of-watchdog:build .
1313
else
1414
docker build -t functions/of-watchdog:build .
1515
fi
@@ -23,4 +23,3 @@ docker cp buildoutput:/go/src/github.com/openfaas-incubator/of-watchdog/of-watch
2323
docker cp buildoutput:/go/src/github.com/openfaas-incubator/of-watchdog/of-watchdog.exe ./of-watchdog.exe
2424

2525
docker rm buildoutput
26-

0 commit comments

Comments
 (0)