Commit efca49c0 authored by Mark Harding's avatar Mark Harding
Browse files

(fix): sentry attached version following linting

parent 5607b238
Loading
Loading
Loading
Loading
+29 −29
Original line number Original line Diff line number Diff line
@@ -16,8 +16,8 @@ stages:


variables:
variables:
  CYPRESS_INSTALL_BINARY: 0 # Speeds up the install process
  CYPRESS_INSTALL_BINARY: 0 # Speeds up the install process
  npm_config_cache: "$CI_PROJECT_DIR/.npm"
  npm_config_cache: '$CI_PROJECT_DIR/.npm'
  CYPRESS_CACHE_FOLDER: "$CI_PROJECT_DIR/cache/Cypress"
  CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'


test:
test:
  image: circleci/node:8-browsers
  image: circleci/node:8-browsers
@@ -68,14 +68,14 @@ e2e:chrome:
build:review:
build:review:
  stage: build
  stage: build
  before_script:
  before_script:
    - sed -ri "s|\"VERSION\"|\"$CI_PIPELINE_ID\"|" src/environments/environment.prod.ts
    - sed -ri "s|'VERSION'|'$CI_PIPELINE_ID'|" src/environments/environment.prod.ts
  script:
  script:
    - npm ci && npm install -g gulp-cli
    - npm ci && npm install -g gulp-cli
    - npm run postinstall
    - npm run postinstall
    - gulp build.sass && gulp build.sass ##weird build needs to be run twice for now
    - gulp build.sass && gulp build.sass ##weird build needs to be run twice for now
    - sh build/base-locale.sh dist
    - sh build/base-locale.sh dist
  artifacts:
  artifacts:
    name: "$CI_COMMIT_REF_SLUG"
    name: '$CI_COMMIT_REF_SLUG'
    paths:
    paths:
      - dist
      - dist
  except:
  except:
@@ -86,14 +86,14 @@ build:review:
build:production:en:
build:production:en:
  stage: build
  stage: build
  before_script:
  before_script:
    - sed -ri "s|\"VERSION\"|\"$CI_PIPELINE_ID\"|" src/environments/environment.prod.ts
    - sed -ri "s|'VERSION'|'$CI_PIPELINE_ID'|" src/environments/environment.prod.ts
  script:
  script:
    - npm ci && npm install -g gulp-cli
    - npm ci && npm install -g gulp-cli
    - npm run postinstall
    - npm run postinstall
    - 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
    - sh build/base-locale.sh dist https://cdn-assets.minds.com/front/dist
    - sh build/base-locale.sh dist https://cdn-assets.minds.com/front/dist
  artifacts:
  artifacts:
    name: "$CI_COMMIT_REF_SLUG"
    name: '$CI_COMMIT_REF_SLUG'
    paths:
    paths:
      - dist/en
      - dist/en
  only:
  only:
@@ -104,14 +104,14 @@ build:production:en:
build:production:i18n:
build:production:i18n:
  stage: build
  stage: build
  before_script:
  before_script:
    - sed -ri "s|\"VERSION\"|\"$CI_PIPELINE_ID\"|" src/environments/environment.prod.ts
    - sed -ri "s|'VERSION'|'$CI_PIPELINE_ID'|" src/environments/environment.prod.ts
  script:
  script:
    - npm ci && npm install -g gulp-cli
    - npm ci && npm install -g gulp-cli
    - npm run postinstall
    - npm run postinstall
    - 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
    - sh build/i18n-locales-all.sh dist https://cdn-assets.minds.com/front/dist
    - sh build/i18n-locales-all.sh dist https://cdn-assets.minds.com/front/dist
  artifacts:
  artifacts:
    name: "$CI_COMMIT_REF_SLUG"
    name: '$CI_COMMIT_REF_SLUG'
    paths:
    paths:
      - dist/vi
      - dist/vi
  only:
  only:
@@ -151,7 +151,7 @@ prepare:review:
prepare:review:sentry:
prepare:review:sentry:
  <<: *sentry_prepare
  <<: *sentry_prepare
  variables:
  variables:
    SOURCEMAP_PREFIX: "~/en"
    SOURCEMAP_PREFIX: '~/en'
  except:
  except:
    refs:
    refs:
      - master
      - master
@@ -177,7 +177,7 @@ prepare:production:
prepare:production:sentry:
prepare:production:sentry:
  <<: *sentry_prepare
  <<: *sentry_prepare
  variables:
  variables:
    SOURCEMAP_PREFIX: "~/front/dist/en"
    SOURCEMAP_PREFIX: '~/front/dist/en'
  only:
  only:
    refs:
    refs:
      - master
      - master
@@ -269,7 +269,7 @@ staging:fpm:
  <<: *deploy
  <<: *deploy
  stage: deploy:staging
  stage: deploy:staging
  variables:
  variables:
    IMAGE_LABEL: "staging"
    IMAGE_LABEL: 'staging'
    ECS_SERVICE: $ECS_APP_STAGING_SERVICE
    ECS_SERVICE: $ECS_APP_STAGING_SERVICE
  environment:
  environment:
    name: staging
    name: staging
@@ -279,7 +279,7 @@ deploy:canary:
  <<: *deploy
  <<: *deploy
  stage: deploy:canary
  stage: deploy:canary
  variables:
  variables:
    IMAGE_LABEL: "canary"
    IMAGE_LABEL: 'canary'
    ECS_SERVICE: $ECS_APP_CANARY_SERVICE
    ECS_SERVICE: $ECS_APP_CANARY_SERVICE
  environment:
  environment:
    name: canary
    name: canary
@@ -291,7 +291,7 @@ deploy:production:
  <<: *deploy
  <<: *deploy
  stage: deploy:production
  stage: deploy:production
  variables:
  variables:
    IMAGE_LABEL: "production"
    IMAGE_LABEL: 'production'
    ECS_SERVICE: $ECS_APP_PRODUCTION_SERVICE
    ECS_SERVICE: $ECS_APP_PRODUCTION_SERVICE
  environment:
  environment:
    name: production
    name: production