Compare commits

...

2 Commits

Author SHA1 Message Date
Austin Lee 642ddfc029
Update entrypoint.sh 2021-06-13 17:44:05 +08:00
Austin Lee a62226a739
Update Dockerfile 2021-06-13 17:43:38 +08:00
2 changed files with 6 additions and 9 deletions

View File

@ -2,12 +2,9 @@ FROM node:lts-alpine
LABEL maintainer="lizheming <i@imnerd.org>"
RUN apk upgrade --no-cache && apk add --no-cache bash
ENV ROOT /usr/src/app
WORKDIR ${ROOT}
RUN npm install -g coveralls
RUN npm install coveralls
ADD ./entrypoint.sh /bin
RUN chmod +x /bin/entrypoint.sh
ADD ./entrypoint.sh .
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
ENTRYPOINT ["entrypoint.sh"]

View File

@ -21,7 +21,7 @@ for file in $(echo $files | tr -d '[[:space:]]' | tr "," "\n"); do
vfiles="$vfiles -f $PWD/$file"
echo "-- Sending $file to Coveralls.io --"
eval 'cat $PWD/$file | ./node_modules/coveralls/bin/coveralls.js'
eval 'cat $PWD/$file | coveralls'
fi
done
@ -59,4 +59,4 @@ if [[ $exitcode -eq 0 ]]; then
echo "-- Coverage successfully pushed to Coveralls!"
else
echo "-- Coverage failed to push to Coveralls!"
fi
fi