-npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
cache:
cache:
key:$CI_BUILD_REF_SLUG
key:$CI_BUILD_REF_SLUG
paths:
paths:
-.npm
-cache/Cypress
-node_modules
-node_modules
policy:pull-push
policy:pull-push
build:review:
# test:
stage:build
# image: circleci/node:8-browsers
script:
# stage: test:unit
-npm install# TODO: Why is this needed?
# script:
-npm run postinstall
# - npm install # Should be cached...
-npm install -g gulp-cli
# - npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
-npm rebuild node-sass
# cache:
-gulp build.sass && gulp build.sass##weird build needs to be run twice for now
# key: $CI_BUILD_REF_SLUG
-sh build/base-locale.sh dist
# paths:
artifacts:
# - node_modules
name:"$CI_COMMIT_REF_SLUG"
# policy: pull-push
paths:
-dist
e2e:base:
except:
image:cypress/base:10
refs:
stage:test:e2e
-master
variables:
-test/gitlab-ci
CYPRESS_INSTALL_BINARY:1
build:production:en:
stage:build
script:
script:
-npm install# TODO: Why is this needed?
->
-npm run postinstall
if [ "$CI_BUILD_REF_NAME" == "feat/cypress" ]; then
-npm install -g gulp-cli
export E2E_DOMAIN=https://www.minds.com
-npm rebuild node-sass
else
-gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en##weird build needs to be run twice for now
-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:
artifacts:
name:"$CI_COMMIT_REF_SLUG"
when:always
paths:
paths:
-dist/en
-cypress/screenshots/**/*.mp4
only:
-cypress/videos/**/*.mp4
refs:
allow_failure:true#manual inspection in case of timeouts
-master
-test/gitlab-ci
e2e:chrome:
image:cypress/browsers:chrome67
build:production:i18n:
stage:test:e2e
stage:build
variables:
CYPRESS_INSTALL_BINARY:1
script:
script:
-npm install# TODO: Why is this needed?
->
-npm run postinstall
if [ "$CI_BUILD_REF_NAME" == "feat/cypress" ]; then
-npm install -g gulp-cli
export E2E_DOMAIN=https://www.minds.com
-npm rebuild node-sass
else
-gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en##weird build needs to be run twice for now
# - gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en ##weird build needs to be run twice for now
# - gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en ##weird build needs to be run twice for now
-aws eks update-kubeconfig --name=sandbox
# - sh build/i18n-locales-all.sh dist https://cdn-assets.minds.com/front/dist