Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
chore: integrates build step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zakharchenko committed Sep 23, 2019
1 parent a363d2e commit b8b0304
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: 2.1


commands:
npm-install:
steps:
Expand All @@ -18,31 +17,36 @@ commands:
- run: echo $(python --version) > .python-version
- restore_cache:
key: py-deps-{{ checksum ".python-version" }}-{{ checksum "docs/requirements.txt" }}
- run: "if [ ! -d ./venv ]; then python -m venv ./venv; fi"
- run: 'if [ ! -d ./venv ]; then python -m venv ./venv; fi'
- run: echo "source $(pwd)/venv/bin/activate" >> $BASH_ENV
- run: pip install -r ./docs/requirements.txt
- save_cache:
key: py-deps-{{ checksum "docs/requirements.txt" }}
paths:
- ./venv


aliases:
- &node12
image: circleci/node:12

- &python-docs
# using Python 3.6 as that's the version ReadTheDocs is running
- &python-docs # using Python 3.6 as that's the version ReadTheDocs is running
image: circleci/python:3.6-node

- &test-steps
steps:
- checkout
- npm-install
- run: npm run build
- run: npm run ci:test


jobs:
build:
docker: [<<: *node12]
steps:
- checkout
- npm-install
- run: npm run build

test-node12:
docker: [<<: *node12]
<<: *test-steps
Expand All @@ -60,13 +64,17 @@ jobs:
steps:
- checkout
- npm-install
- run: npm run build
- run: npm run e2e:apib

test-e2e-openapi2:
docker: [<<: *node12]
steps:
- checkout
- restore_cache:
key: build-{{ .Branch }}-{{ .Revision }}-node12
- npm-install
- run: npm run build
- run: npm run e2e:openapi2

quality-checks:
Expand Down Expand Up @@ -94,6 +102,7 @@ jobs:
steps:
- checkout
- npm-install
- run: npm run build
- run: npm run ci:smoke

release:
Expand All @@ -103,21 +112,22 @@ jobs:
steps:
- checkout
- npm-install
- run: npm run build
- run: npm run ci:release


workflows:
version: 2
test-and-release:
jobs:
- quality-checks
- docs-dry-run
- test-node12
- test-node10
- test-node8
- test-e2e-apib
- test-e2e-openapi2
- smoke-tests
- docs-dry-run

- release:
requires:
- quality-checks
Expand Down

0 comments on commit b8b0304

Please sign in to comment.