cleaned up integration test flow
This commit is contained in:
parent
23d629b80b
commit
76de2b29a5
20 changed files with 123 additions and 1798 deletions
55
circle.yml
55
circle.yml
|
@ -6,27 +6,27 @@ jobs:
|
|||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: send-{{ checksum "package-lock.json" }}
|
||||
key: send-build-{{ checksum "package-lock.json" }}
|
||||
- run: npm install
|
||||
- save_cache:
|
||||
key: send-{{ checksum "package-lock.json" }}
|
||||
key: send-build-{{ checksum "package-lock.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- run: npm run build
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- ./*
|
||||
- ./dist
|
||||
test:
|
||||
docker:
|
||||
- image: circleci/node:10-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: send-{{ checksum "package-lock.json" }}
|
||||
key: send-test-{{ checksum "package-lock.json" }}
|
||||
- run: npm install
|
||||
- save_cache:
|
||||
key: send-{{ checksum "package-lock.json" }}
|
||||
key: send-test-{{ checksum "package-lock.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- run: npm run lint
|
||||
|
@ -34,30 +34,19 @@ jobs:
|
|||
- store_artifacts:
|
||||
path: coverage
|
||||
integration_tests:
|
||||
machine: true
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
- image: selenium/standalone-firefox
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Install Docker Compose
|
||||
command: |
|
||||
set -x
|
||||
pip install docker-compose>=1.18
|
||||
docker-compose --version
|
||||
- run:
|
||||
name: Setup
|
||||
command: |
|
||||
set -x
|
||||
docker-compose pull
|
||||
- run:
|
||||
name: Run Integration tests
|
||||
command: |
|
||||
set -x
|
||||
docker-compose up -d selenium-firefox
|
||||
sleep 10
|
||||
docker-compose ps
|
||||
docker-compose exec selenium-firefox npm run test-circle:selenium
|
||||
- restore_cache:
|
||||
key: send-int-{{ checksum "package-lock.json" }}
|
||||
- run: npm install
|
||||
- save_cache:
|
||||
key: send-int-{{ checksum "package-lock.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- run: npm run circleci-test-integration
|
||||
deploy_dev:
|
||||
machine: true
|
||||
steps:
|
||||
|
@ -101,12 +90,12 @@ workflows:
|
|||
ignore:
|
||||
- master
|
||||
- vnext
|
||||
# - integration_tests:
|
||||
# filters:
|
||||
# branches:
|
||||
# ignore: master
|
||||
# requires:
|
||||
# - build
|
||||
- integration_tests:
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
requires:
|
||||
- build
|
||||
build_and_deploy_dev:
|
||||
jobs:
|
||||
- build:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue