Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Test unmock server. #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
version: 2.1
orbs:
unmock: unmock/unmock@volatile
unmock: unmock/unmock@dev:0.0.14

defaults: &defaults
working_directory: ~/repo
Expand All @@ -23,9 +23,22 @@ jobs:
- persist_to_workspace:
root: ~/repo
paths: .

server:
<<: *defaults
steps:
- checkout
- run: yarn
- run:
name: "Add __unmock__/petstore.swagger.io"
command: |
mkdir -p __unmock__
git submodule add -f https://github.com/ksaaskil/petstore.swagger.io.git __unmock__/petstore.swagger.io
- unmock/start
- unmock/call
# - run: yarn test
- unmock/stop
workflows:
version: 2
test-and-build:
jobs:
- build
- server
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
dist
test
.env
__unmock__/
__unmock__/*.html
__unmock__/*.log
Empty file added __unmock__/.gitkeep
Empty file.