trimmed circleci config
This commit is contained in:
parent
2f34dffab4
commit
7ad937266f
@ -1,36 +1,13 @@
|
|||||||
version: 2.0
|
version: 2.0
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:10
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
key: send-build-{{ checksum "package-lock.json" }}
|
|
||||||
- run: npm install
|
|
||||||
- save_cache:
|
|
||||||
key: send-build-{{ checksum "package-lock.json" }}
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
- run: npm run build
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: .
|
|
||||||
paths:
|
|
||||||
- ./dist
|
|
||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:10-browsers
|
- image: circleci/node:10-browsers
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- run: npm ci
|
||||||
key: send-test-{{ checksum "package-lock.json" }}
|
|
||||||
- run: npm install
|
|
||||||
- save_cache:
|
|
||||||
key: send-test-{{ checksum "package-lock.json" }}
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run test
|
- run: npm test
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: coverage
|
path: coverage
|
||||||
integration_tests:
|
integration_tests:
|
||||||
@ -38,40 +15,34 @@ jobs:
|
|||||||
- image: circleci/node:10-browsers
|
- image: circleci/node:10-browsers
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- run: npm ci
|
||||||
key: send-int-{{ checksum "package-lock.json" }}
|
- run:
|
||||||
- run: npm install
|
|
||||||
- save_cache:
|
|
||||||
key: send-int-{{ checksum "package-lock.json" }}
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
- run:
|
|
||||||
name: Run integration test
|
name: Run integration test
|
||||||
command: ./scripts/bin/run-integration-test-circleci.sh
|
command: ./scripts/bin/run-integration-test-circleci.sh
|
||||||
deploy_dev:
|
deploy_dev:
|
||||||
machine: true
|
docker:
|
||||||
|
- image: circleci/node:10
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- setup_remote_docker
|
||||||
at: .
|
|
||||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- run: docker build -t mozilla/send:latest .
|
- run: docker build -t mozilla/send:latest .
|
||||||
- run: docker push mozilla/send:latest
|
- run: docker push mozilla/send:latest
|
||||||
deploy_vnext:
|
deploy_vnext:
|
||||||
machine: true
|
docker:
|
||||||
|
- image: circleci/node:10
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- setup_remote_docker
|
||||||
at: .
|
|
||||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- run: docker build -t mozilla/send:vnext .
|
- run: docker build -t mozilla/send:vnext .
|
||||||
- run: docker push mozilla/send:vnext
|
- run: docker push mozilla/send:vnext
|
||||||
deploy_stage:
|
deploy_stage:
|
||||||
machine: true
|
docker:
|
||||||
|
- image: circleci/node:10
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- setup_remote_docker
|
||||||
at: .
|
|
||||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
- run: docker build -t mozilla/send:$CIRCLE_TAG .
|
- run: docker build -t mozilla/send:$CIRCLE_TAG .
|
||||||
- run: docker push mozilla/send:$CIRCLE_TAG
|
- run: docker push mozilla/send:$CIRCLE_TAG
|
||||||
@ -79,12 +50,6 @@ workflows:
|
|||||||
version: 2
|
version: 2
|
||||||
test_pr:
|
test_pr:
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore:
|
|
||||||
- master
|
|
||||||
- vnext
|
|
||||||
- test:
|
- test:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@ -97,25 +62,13 @@ workflows:
|
|||||||
ignore: master
|
ignore: master
|
||||||
build_and_deploy_dev:
|
build_and_deploy_dev:
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- vnext
|
|
||||||
tags:
|
|
||||||
ignore: /^v.*/
|
|
||||||
- deploy_dev:
|
- deploy_dev:
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: master
|
only: master
|
||||||
tags:
|
tags:
|
||||||
ignore: /^v.*/
|
ignore: /^v.*/
|
||||||
- deploy_vnext:
|
- deploy_vnext:
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: vnext
|
only: vnext
|
||||||
@ -123,12 +76,6 @@ workflows:
|
|||||||
ignore: /^v.*/
|
ignore: /^v.*/
|
||||||
build_and_deploy_stage:
|
build_and_deploy_stage:
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: /.*/
|
|
||||||
tags:
|
|
||||||
only: /^v.*/
|
|
||||||
- test:
|
- test:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
@ -142,8 +89,6 @@ workflows:
|
|||||||
tags:
|
tags:
|
||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
- deploy_stage:
|
- deploy_stage:
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
- integration_tests
|
- integration_tests
|
||||||
filters:
|
filters:
|
||||||
|
Loading…
Reference in New Issue
Block a user