image: node:10.15-stretch
stages:
- validation
- build_uat
- test_uat
.cache_path: &cache_path
key: ${CI_PROJECT_PATH_SLUG}
paths:
- '${CI_PROJECT_DIR}/node_modules'
cache:
<<: *cache_path
before_script:
- npm i
jest, linter:
stage: validation
script:
- npm test
- npm run lint
tags:
- gitlab-build-nonprod
UAT:iOS:
stage: build_uat
script:
- npm run build_ios_uat
when: manual
only:
variables:
- $CI_COMMIT_REF_NAME =~ /^feature.*/
UAT:Android:
stage: build_uat
script:
- npm run build_android_uat
when: manual
only:
variables:
- $CI_COMMIT_REF_NAME =~ /^feature.*/
TESTS:UAT:iOS:
stage: test_uat
when: on_success
needs: ['UAT:iOS']
script:
- npm test_aat
TESTS:UAT:Android:
stage: test_uat
when: on_success
needs: ['UAT:Android']
script:
- npm test_aat