Skip to content

Commit

Permalink
added circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Andric committed Feb 23, 2019
1 parent d069f7a commit f8cd0b1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/node:latest
steps:
- checkout
- run: node -v
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
#- run: sudo npm install -g npm@latest
- run: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm test
- run: npm run build
- run: |
name="$CIRCLE_PROJECT_REPONAME-$CIRCLE_BUILD_NUM" && \
mkdir packed && \
mv dist "$name" && \
tar zcf "$name.tgz" "$name" && \
mv "$name.tgz" packed/
- store_artifacts:
path: packed
destination: packed


2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![CircleCI](https://circleci.com/gh/mandric/extension-testing-example.svg?style=svg)](https://circleci.com/gh/mandric/extension-testing-example)

# extension-testing-example

Browser extension example using Parcel, Mocha, Sinon-Chrome and Chrome API.
Expand Down

0 comments on commit f8cd0b1

Please sign in to comment.