Skip to content

Commit

Permalink
updated dockertests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
erdii committed Sep 20, 2016
1 parent ab14c47 commit 09e3b4a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_0_10
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_0_12
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_4_2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_5_0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_5_4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_latest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
2 changes: 1 addition & 1 deletion dockertests/Dockerfile_lts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /usr/src/
COPY package.json /usr/src/package.json

RUN npm install --production
RUN npm install -g expresso
RUN npm install mocha should

COPY lib/ /usr/src/lib/
COPY test/ /usr/src/test/
Expand Down
10 changes: 4 additions & 6 deletions dockertests/runtests.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
VERSIONS[0]="0.10"
VERSIONS[1]="0.12"
VERSIONS[2]="4.2"
# currently expresso is not working on node 5.x
#VERSIONS[3]="5.0"
#VERSIONS[4]="5.4"
VERSIONS[3]="5.0"
VERSIONS[4]="5.4"
VERSIONS[5]="lts"
# currently expresso is not working on node 5.x
#VERSIONS[6]="latest"
VERSIONS[6]="latest"


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand All @@ -25,7 +23,7 @@ do
BUILDLOGS="$DIR/dockerbuild_$version.log"
rm -f $BUILDLOGS
docker build -t=mpneuried.nodecache.test.$version -f=$SCRIPTDIR/$DFile . > $BUILDLOGS
docker run mpneuried.nodecache.test.$version >&2
docker run --rm mpneuried.nodecache.test.$version >&2
else
echo "Dockerfile '$DFile' not found"
fi
Expand Down

0 comments on commit 09e3b4a

Please sign in to comment.