Skip to content

Commit

Permalink
Merge pull request #389 from dopry/circleci_basic
Browse files Browse the repository at this point in the history
chore: add circleci and commitlint validation
  • Loading branch information
dopry authored Jul 26, 2018
2 parents 9b29069 + 16581c5 commit 3d94fc7
Show file tree
Hide file tree
Showing 5 changed files with 1,310 additions and 3 deletions.
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2

aliases:
x-ignore-master: &x-ignore-master
filters:
branches:
ignore: master

x-only-master: &x-only-master
filters:
branches:
only: master


jobs:
lint:
docker:
- image: circleci/node:8.9
steps:
- checkout
- restore_cache:
keys:
- npm-{{ checksum "package-lock.json" }}-{{ arch }}
- npm-
- run: npm install
- save_cache:
paths:
- node_modules
key: npm-{{ checksum "package-lock.json" }}-{{ arch }}
- run:
command: |
LAST_TAG=`git describe --tags --abbrev=0`
echo commitlint --from ${LAST_TAG}
npx commitlint --from ${LAST_TAG}
workflows:
version: 2
pullrequest:
jobs:
- lint:
<<: *x-ignore-master

master:
jobs:
- lint:
<<: *x-only-master
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Thumbs.db

.idea/

nbproject/
nbproject/
node_modules/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

* Ranging
* Monitoring

#### Features exclusive to iOS

* Region Monitoring (or geo fencing), works in all app states.
Expand Down
Loading

0 comments on commit 3d94fc7

Please sign in to comment.