.gitlab-ci.yml 1.86 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
# this is a generated file
image: bahmutov/cypress-image
# caching node_modules folder
# https://about.gitlab.com/2016/03/01/gitlab-runner-with-docker/
cache:
  paths:
  - node_modules/

before_script:
  - cypress verify

stages:
  - build
  - test

build-specs:
  stage: build
  script:
    - npm install
    - npm test
    - npm run build
  artifacts:
    paths:
      - cypress/integration

# Common build job definition using GitLab YAML features
# http://docs.gitlab.com/ce/ci/yaml/README.html#special-yaml-features

# we will generate the test definitions per spec bundle
# using the common definition

# Hidden job that defines an anchor named 'e2e_test_definition'
# This job will be automatically assigned "test" phase
.job_template: &e2e_test_definition
  script:
    - cypress ci --spec "cypress/integration/$CI_BUILD_NAME.js"

Gleb Bahmutov's avatar
Gleb Bahmutov committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
actions_spec:
  <<: *e2e_test_definition
    
aliasing_spec:
  <<: *e2e_test_definition
    
assertions_spec:
  <<: *e2e_test_definition
    
basic_spec:
  <<: *e2e_test_definition
    
config_spec:
  <<: *e2e_test_definition
    
connectors_spec:
  <<: *e2e_test_definition
    
cookies_spec:
  <<: *e2e_test_definition
    
cookies2_spec:
  <<: *e2e_test_definition
    
dom_spec:
  <<: *e2e_test_definition
    
env_spec:
  <<: *e2e_test_definition
    
fixtures_spec:
  <<: *e2e_test_definition
    
local-storage_spec:
  <<: *e2e_test_definition
    
location_spec:
  <<: *e2e_test_definition
    
misc_spec:
  <<: *e2e_test_definition
    
navigation_spec:
  <<: *e2e_test_definition
    
network_spec:
  <<: *e2e_test_definition
    
querying_spec:
  <<: *e2e_test_definition
    
server_spec:
  <<: *e2e_test_definition
    
traversal_spec:
  <<: *e2e_test_definition
    
utilities_spec:
  <<: *e2e_test_definition
    
viewport_spec:
  <<: *e2e_test_definition
    
waiting_spec:
  <<: *e2e_test_definition
    
window_spec:
105 106
  <<: *e2e_test_definition