Loading .gitlab-ci.yml 0 → 100644 +57 −0 Original line number Original line Diff line number Diff line services: - docker:dind stages: - test:e2e variables: CYPRESS_INSTALL_BINARY: 3.4.1 npm_config_cache: "$CI_PROJECT_DIR/.npm" CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress" cache: paths: - .npm - node_modules - cache/Cypress e2e:base: image: cypress/base:10 stage: test:e2e script: - npm ci - > if [ "$CI_BUILD_REF_NAME" == "master" ]; then export E2E_DOMAIN=https://www.minds.com else export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN fi - export CYPRESS_baseUrl=$E2E_DOMAIN - echo "E2E tests for $CI_BUILD_REF_NAME running against $E2E_DOMAIN with user $CYPRESS_username" - $(npm bin)/cypress run --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN artifacts: when: always paths: - cypress/screenshots - cypress/videos allow_failure: true #manual inspection in case of timeouts e2e:chrome: image: cypress/browsers:chrome67 stage: test:e2e script: - npm ci - > if [ "$CI_BUILD_REF_NAME" == "master" ]; then export E2E_DOMAIN=https://www.minds.com else export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN fi - export CYPRESS_baseUrl=$E2E_DOMAIN - echo "E2E tests for $CI_BUILD_REF_NAME running against $E2E_DOMAIN with user $CYPRESS_username" - $(npm bin)/cypress run --browser chrome --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN artifacts: when: always paths: - cypress/screenshots allow_failure: true #manual inspection in case of timeouts Loading
.gitlab-ci.yml 0 → 100644 +57 −0 Original line number Original line Diff line number Diff line services: - docker:dind stages: - test:e2e variables: CYPRESS_INSTALL_BINARY: 3.4.1 npm_config_cache: "$CI_PROJECT_DIR/.npm" CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress" cache: paths: - .npm - node_modules - cache/Cypress e2e:base: image: cypress/base:10 stage: test:e2e script: - npm ci - > if [ "$CI_BUILD_REF_NAME" == "master" ]; then export E2E_DOMAIN=https://www.minds.com else export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN fi - export CYPRESS_baseUrl=$E2E_DOMAIN - echo "E2E tests for $CI_BUILD_REF_NAME running against $E2E_DOMAIN with user $CYPRESS_username" - $(npm bin)/cypress run --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN artifacts: when: always paths: - cypress/screenshots - cypress/videos allow_failure: true #manual inspection in case of timeouts e2e:chrome: image: cypress/browsers:chrome67 stage: test:e2e script: - npm ci - > if [ "$CI_BUILD_REF_NAME" == "master" ]; then export E2E_DOMAIN=https://www.minds.com else export E2E_DOMAIN=https://$CI_BUILD_REF_SLUG.$KUBE_INGRESS_BASE_DOMAIN fi - export CYPRESS_baseUrl=$E2E_DOMAIN - echo "E2E tests for $CI_BUILD_REF_NAME running against $E2E_DOMAIN with user $CYPRESS_username" - $(npm bin)/cypress run --browser chrome --record --key $CYPRESS_RECORD_ID --config CYPRESS_baseUrl=$E2E_DOMAIN artifacts: when: always paths: - cypress/screenshots allow_failure: true #manual inspection in case of timeouts