Skip to content
Snippets Groups Projects
Commit 95eb2ede authored by Dobromir Palushev's avatar Dobromir Palushev
Browse files

Merge branch 'just-a-test' into 'staging'

pipeline multiple updates

See merge request !11
parents a20d6339 c1eab9e1
No related branches found
No related tags found
17 merge requests!72Production update,!70Production update,!67Workflow updates,!66Css test change,!64Pipeline fix,!62Main update,!60Getting staging's latest state,!58Updating Main,!56Main updates,!52Staging->Main,!50Production updates,!47Deployment on main,!45Deployment from main,!41updated logic of the test-job,!39updated logic of the test-job,!37Updating main to reflect staging,!11pipeline multiple updates
Pipeline #19115 failed
...@@ -37,26 +37,28 @@ run-tests: ...@@ -37,26 +37,28 @@ run-tests:
# services: # services:
# - name: docker:${DOCKER_VERSION}-dind # - name: docker:${DOCKER_VERSION}-dind
script: script:
# - docker run -p 27017:27017 -d --name mongo-container --rm mongo:${MONGO_VERSION} - docker run -p 27017:27017 -d --name mongo-container --rm --add-host=host.docker.internal:host-gateway mongo:${MONGO_VERSION}
# - docker build - docker build
# --tag "${CONTAINER_TAG}-test" --tag "${CONTAINER_TAG}-test"
# --target=test --target=test
# "./app" "./app"
- echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/main’ >> /etc/apk/repositories # - echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/main’ >> /etc/apk/repositories
- echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/community’ >> /etc/apk/repositories # - echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/community’ >> /etc/apk/repositories
- apk add mongodb mongodb-tools # - apk update
- mongod --config "./app/server/dev.mongo.conf" # - apk add mongodb mongodb-tools
- cd "./app/client" # - mkdir -p /data/db/
- npm ci --no-audit --no-fund # - mongod --config "./app/server/dev.mongo.conf"
- npm run test # - cd "./app/client"
- cd "../server" # - npm ci --no-audit --no-fund
- npm ci --no-audit --no-fund # - npm run test
- MONGODB_URL=mongodb://localhost:27017/todo-app JWT_SECRET=a-big-secret npm run test # - cd "../server"
- jest --ci # - npm ci --no-audit --no-fund
# after_script: # - MONGODB_URL=mongodb://localhost:27017/todo-app JWT_SECRET=a-big-secret npm run test
# - docker stop mongo-container # - jest --ci
# - docker images -a | grep "mongo" | awk '{print $3}' | xargs docker rmi --force after_script:
# - docker image rm --force "${CONTAINER_TAG}-test" - docker stop mongo-container
- docker images -a | grep "mongo" | awk '{print $3}' | xargs docker rmi --force
- docker image rm --force "${CONTAINER_TAG}-test"
build-image: build-image:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment