Skip to content

Commit

Permalink
chore: Set up droneci
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbachmann committed Apr 17, 2018
1 parent f04c17d commit 38a09ab
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
clone:
git:
image: plugins/git
depth: 50
tags: true

cache: [".npm"]

pipeline:
npm-install:
group: install
image: node:8-alpine
commands: ["npm install"]

eslint:
group: install
image: marcbachmann/eslint:4.19.1
secrets: [gh_token]

npm-ls:
group: test
image: node:8-alpine
commands: ["npm ls -s"]

test:
group: test
image: node:8-alpine
commands: ["npm run test:ci -s"]

release:
group: publish
image: marcbachmann/semantic-release:15.1.3
secrets: [gh_token]
when:
event: push
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"url": "https://github.com/upfrontIO/microschema"
},
"scripts": {
"test": "ava test.js && eslint ."
"test": "ava test.js && eslint .",
"test:ci": "ava test.js"
},
"files": ["index.js"],
"keywords": [
Expand All @@ -21,8 +22,7 @@
"license": "MIT",
"devDependencies": {
"ava": "^0.25.0",
"eslint": "^4.19.0",
"semantic-release": "15.1.3"
"eslint": "^4.19.1"
},
"engines": {
"node": ">=8.9.0",
Expand Down

0 comments on commit 38a09ab

Please sign in to comment.