From d0810f4d980eb9e3d08a7babeadd12faceceac06 Mon Sep 17 00:00:00 2001 From: "Thomas R. Honeyman" Date: Fri, 26 Oct 2018 14:52:22 -0700 Subject: [PATCH] Fix circle ci --- .circleci/config.yml | 23 +++++++++++++++++++---- package.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 package.json diff --git a/.circleci/config.yml b/.circleci/config.yml index bea2a90..0a8e00d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,12 @@ 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" }} @@ -18,17 +24,26 @@ jobs: - 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 diff --git a/package.json b/package.json new file mode 100644 index 0000000..83ef8ef --- /dev/null +++ b/package.json @@ -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" + } +}