master Test for GTM event at signup (#2256)

* Test for first_authentication event in GTM

* Missing file

* Code refactored

* Styling improved

Pavel Dotsulenko avatar Pavel Dotsulenko

Push event #5.1 canceled

  • Ran for
AMD64
Node.js: 10
Git
pavel-d/travis-web:.travis.yml@1ccfde3
---
language: node_js
node_js: 10

import:
  - source: travis-ci/build-configs:ship-docker.yml
    if: branch = master

env:
  global:
    - PERCY_ENABLE=0

dist: xenial

addons:
  chrome: stable

cache:
  npm: true

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

before_install:
  - npm config set spin false
  - npm install -g greenkeeper-lockfile@1

install:
  - npm ci

before_script:
  - if [ $TRAVIS_PULL_REQUEST = 'false' ] && [ $TRAVIS_EVENT_TYPE != 'cron' ]; then echo "Enabling Percy on push with default Ember" && export PERCY_ENABLE=1; else export PERCY_ENABLE=0; fi
  - echo $PERCY_ENABLE
  - if [ "$PERCY_ENABLE" -ne 1 ]; then export RANDOMISE=--random; fi
  - echo $RANDOMISE
  - greenkeeper-lockfile-update

script:
  - if [ -z "$TRY_CONFIG" ]; then npm run lint:js; fi
  - if [ -z "$TRY_CONFIG" ]; then ember exam --reporter dot $RANDOMISE; fi
  - if [[ ! -z "$TRY_CONFIG" ]]; then ember try:one $TRY_CONFIG --skip-cleanup; fi

after_script:
  - greenkeeper-lockfile-upload
  - "test $TRAVIS_PULL_REQUEST && test $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_SECURE_ENV_VARS == 'true' && ./config/deployment/deploy-pull-request.sh"

jobs:
  include:
    - if: type = cron
      env: TRY_CONFIG=ember-beta
    - if: type = cron
      env: TRY_CONFIG=ember-data-beta
    - node_js: 10
  allow_failures:
    - env: TRY_CONFIG=ember-beta
    - env: TRY_CONFIG=ember-data-beta
Build Config
{
  "env": {
    "global": [
      "JOBS=1"
    ]
  },
  "dist": "xenial",
  "jobs": {
    "include": [
      {
        "if": "type = cron",
        "env": "TRY_CONFIG=ember-beta"
      },
      {
        "if": "type = cron",
        "env": "TRY_CONFIG=ember-data-beta"
      },
      {
        "node_js": 10
      }
    ],
    "allow_failures": [
      {
        "env": "TRY_CONFIG=ember-beta"
      },
      {
        "env": "TRY_CONFIG=ember-data-beta"
      }
    ]
  },
  "cache": {
    "npm": true
  },
  "addons": {
    "chrome": "stable"
  },
  "import": [
    {
      "if": "branch = master",
      "source": "travis-ci/build-configs:ship-docker.yml"
    }
  ],
  "script": [
    "if [ -z \"$TRY_CONFIG\" ]; then npm run lint:js; fi",
    "if [ -z \"$TRY_CONFIG\" ]; then ember exam --reporter dot $RANDOMISE; fi",
    "if [[ ! -z \"$TRY_CONFIG\" ]]; then ember try:one $TRY_CONFIG --skip-cleanup; fi"
  ],
  "install": [
    "npm ci"
  ],
  "node_js": 10,
  "language": "node_js",
  "after_script": [
    "greenkeeper-lockfile-upload",
    "test $TRAVIS_PULL_REQUEST && test $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_SECURE_ENV_VARS == 'true' && ./config/deployment/deploy-pull-request.sh"
  ],
  "before_script": [
    "if [ $TRAVIS_PULL_REQUEST = 'false' ] && [ $TRAVIS_EVENT_TYPE != 'cron' ]; then echo \"Enabling Percy on push with default Ember\" && export PERCY_ENABLE=1; else export PERCY_ENABLE=0; fi",
    "echo $PERCY_ENABLE",
    "if [ \"$PERCY_ENABLE\" -ne 1 ]; then export RANDOMISE=--random; fi",
    "echo $RANDOMISE",
    "greenkeeper-lockfile-update"
  ],
  "before_install": [
    "npm config set spin false",
    "npm install -g greenkeeper-lockfile@1"
  ]
}