forked from kalisio/crisis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile.api-tester
More file actions
31 lines (25 loc) · 798 Bytes
/
dockerfile.api-tester
File metadata and controls
31 lines (25 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG APP
ARG TAG
FROM kalisio/$APP:$TAG
LABEL maintainer="contact@kalisio.xyz"
ARG APP
ARG TEST_REPORTER_VERSION=0.7.0
ENV MOCHA_CONTEXT=$APP
ENV STANDARD_CONTEXT=$APP
ENV SLACK_WEBOOK_URL=
ENV CC_TEST_REPORTER_ID=
# Install GIT
RUN apt-get update && apt-get -y install git
# Install code climate
WORKDIR /opt/kalisio/$APP/api
RUN \
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-${TEST_REPORTER_VERSION}-linux-amd64 > ./cc-test-reporter && \
chmod +x ./cc-test-reporter && \
mkdir coverage && \
chmod +w coverage
CMD \
yarn lint | node ./test/reporters/standard-slack.js; \
./cc-test-reporter before-build; \
yarn coverage -- -- --reporter test/reporters/mocha-slack; \
./cc-test-reporter format-coverage -t lcov; \
./cc-test-reporter upload-coverage