Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
poliha committed Apr 21, 2020
1 parent 519d72a commit 8b516f0
Showing 1 changed file with 58 additions and 9 deletions.
67 changes: 58 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,67 @@
version: 2.1

commands:
install_deps:
steps:
- checkout
- node/with-cache:
steps:
- run: npm install
run_linter:
steps:
- checkout
- run: npm run lint
run_test:
steps:
- checkout
- run: npm test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
build_electron_pkg:
steps:
- checkout
- run:
name: build electron package
command: ./scripts/electron-build.sh

orbs:
node: circleci/[email protected]
jobs:
build-and-test:
lint-and-test:
docker:
- image: circleci/node:erbium-browsers
steps:
- checkout
- node/with-cache:
steps:
- run: npm install
- run: npm run lint
- run: npm test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
- install_deps
- run_linter
- run_test
build_packages:
docker:
- image: circleci/node:erbium
steps:
- install_deps
- run_linter
- run_test
- build_electron_pkg

workflows:
build-and-test:
lint-and-test:
jobs:
- lint-and-test
build-and-release:
jobs:
- build-and-test
- build_packages
# orbs:
# node: circleci/[email protected]
# jobs:
# lint-and-test:
# docker:
# - image: circleci/node:erbium-browsers
# steps:
# - checkout
# - node/with-cache:
# steps:
# - run: npm install
# - run: npm run lint
# - run: npm test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
# workflows:
# build-and-test:
# jobs:
# - build-and-test

0 comments on commit 8b516f0

Please sign in to comment.