mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-09 03:43:23 +00:00
moved integration text execution to docker
This commit is contained in:
47
circle.yml
47
circle.yml
@@ -16,7 +16,7 @@ jobs:
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- ./*
|
||||
- ./dist
|
||||
test:
|
||||
docker:
|
||||
- image: circleci/node:8-browsers
|
||||
@@ -35,14 +35,11 @@ jobs:
|
||||
- store_artifacts:
|
||||
path: coverage
|
||||
integration_tests:
|
||||
working_directory: ~/send
|
||||
machine: true
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- uitest-cache-{{ checksum "test/integration/Pipfile" }}
|
||||
- uitest-cache-{{ checksum "test/integration/pipenv.txt" }}
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Install Docker Compose
|
||||
command: |
|
||||
@@ -50,33 +47,11 @@ jobs:
|
||||
pip install docker-compose>=1.18
|
||||
docker-compose --version
|
||||
- run:
|
||||
name: Install Tox
|
||||
command: |
|
||||
set -x
|
||||
pip install tox
|
||||
- run:
|
||||
name: Start docker container
|
||||
command: docker-compose up -d
|
||||
- run:
|
||||
name: Run User Integration Tests
|
||||
command: |
|
||||
npm run start:integration-docker
|
||||
npm run test-integration-docker
|
||||
environment:
|
||||
MOZ_HEADLESS: 1
|
||||
- store_artifacts:
|
||||
path: send-test.html
|
||||
- save_cache:
|
||||
key: uitest-cache-{{ checksum "test/integration/Pipfile" }}
|
||||
paths:
|
||||
- test/integration/.tox
|
||||
- save_cache:
|
||||
key: uitest-cache-{{ checksum "test/integration/pipenv.txt" }}
|
||||
paths:
|
||||
- test/integration/.tox
|
||||
command: npm run test-integration
|
||||
deploy_dev:
|
||||
machine: true
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
@@ -85,6 +60,7 @@ jobs:
|
||||
deploy_stage:
|
||||
machine: true
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||
@@ -94,11 +70,20 @@ workflows:
|
||||
version: 2
|
||||
test_pr:
|
||||
jobs:
|
||||
- build:
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
- test:
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
- integration_tests
|
||||
- integration_tests:
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
requires:
|
||||
- build
|
||||
build_and_deploy_dev:
|
||||
jobs:
|
||||
- build:
|
||||
|
||||
Reference in New Issue
Block a user