Skip to content

Commit

Permalink
Fix circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman committed Oct 26, 2018
1 parent 8814e1f commit d0810f4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,39 @@ jobs:
steps:
- checkout

- restore_cache:
keys:
- v0.0-npm-cache-{{ .Branch }}-{{ checksum "package.json" }}
- v0.0-npm-cache-{{ .Branch }}
- v0.0-npm-cache

- restore_cache:
keys:
- v0.0-purs-cache-{{ .Branch }}-{{ checksum "bower.json" }}
- v0.0-purs-cache-{{ .Branch }}
- v0.0-purs-cache

- run:
name: Install Bower dependencies
command: bower i
name: Install NPM & Bower dependencies
command: npm install

- run:
name: Verify the PureScript builds successfully
command: pulp test
command: npm run build

- run:
name: Verify the all tests pass
command: npm run test

- save_cache:
key: v0.0-purs-cache-{{ .Branch }}-{{ checksum "bower.json" }}
paths:
- ~/work/web/purs/bower_components
- ~/work/bower_components

- save_cache:
key: v0.0-npm-cache-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/work/node_modules

workflows:
version: 2
Expand Down
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "purescript-slug",
"description": "Type safe slugs for PureScript",
"scripts": {
"postinstall": "bower i",
"build": "pulp build",
"test": "pulp test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/thomashoneyman/purescript-slug.git"
},
"keywords": [
"purescript",
"slug"
],
"author": "Thomas Honeyman",
"license": "MIT",
"bugs": {
"url": "https://github.com/thomashoneyman/purescript-slug/issues"
},
"homepage": "https://github.com/thomashoneyman/purescript-slug#readme",
"devDependencies": {
"bower": "^1.8.4",
"pulp": "^12.3.0",
"purescript": "^0.12.0"
}
}

0 comments on commit d0810f4

Please sign in to comment.