This repository has been archived by the owner on Sep 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified test approach and push to dockerhub
- Loading branch information
1 parent
e989f6e
commit a825e8d
Showing
5 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,27 +20,17 @@ branches: | |
- master | ||
|
||
before_install: | ||
- docker build -t andriimykytyn/web . | ||
- docker build -t speech4j/web-test -f Dockerfile.dev . | ||
|
||
before_script: | ||
- npm install -g --silent @angular/[email protected] | ||
|
||
script: | ||
- ng lint | ||
- npm run test-headless | ||
- docker run -e CI=true speech4j/web-test -v "$(pwd)"/coverage:/web/coverage/web 55e79f84f759 npm run test-headless | ||
- sonar-scanner -Dsonar.verbose=true -X | ||
- npm run build | ||
|
||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: "$GITHUB_TOKEN" | ||
keep_history: true | ||
local_dir: dist/web | ||
on: | ||
branch: master | ||
|
||
notifications: | ||
email: | ||
on_failure: change | ||
on_success: change | ||
after_success: | ||
- docker build -t speech4j/web-prod . | ||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_ID" --password-stdin | ||
- docker push speech4j/web-prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM docker.io/node:12-stretch | ||
WORKDIR '/web' | ||
COPY package.json . | ||
RUN npm install | ||
COPY . . | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends chromium | ||
ENV CHROME_BIN=chromium | ||
CMD ["npm","run","start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
version: '3' | ||
services: | ||
web: | ||
build: . | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- "4200:80" | ||
- "4200:4200" | ||
volumes: | ||
- /web/node_modules | ||
- .:/web | ||
tests: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
volumes: | ||
- /web/node_modules | ||
- .:/web | ||
command: ["npm","run","test-headless"] | ||
web-prod: | ||
build: . | ||
volumes: | ||
- /web/node_modules | ||
- .:/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters