From 073a53856a5a35f6a1e7db2bac6634bf77dc7537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Sat, 17 Jun 2017 20:18:19 +0200 Subject: [PATCH 1/5] Fix example for new Hyper instance using AVAR --- examples/HelloHyperdrive.purs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/HelloHyperdrive.purs b/examples/HelloHyperdrive.purs index c08f0c9..0a7946a 100644 --- a/examples/HelloHyperdrive.purs +++ b/examples/HelloHyperdrive.purs @@ -1,6 +1,7 @@ module Examples.HelloHyperdrive where import Prelude +import Control.Monad.Aff.AVar (AVAR) import Control.Monad.Eff (Eff) import Control.Monad.Eff.Console (CONSOLE) import Data.Tuple (Tuple(..)) @@ -19,5 +20,5 @@ app _ = # header (Tuple "X-Hello" "Hyperdrive") # pure -main :: forall e. Eff (console :: CONSOLE, http :: HTTP | e) Unit +main :: forall e. Eff (console :: CONSOLE, http :: HTTP, avar :: AVAR | e) Unit main = runServer defaultOptionsWithLogging {} (hyperdrive app) From 2dea8f1a1fcd6cf9a42c77c9dc607a3feb9c5d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Sat, 17 Jun 2017 20:18:39 +0200 Subject: [PATCH 2/5] Add travis build file --- .travis.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..33b114f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: node_js + +sudo: false + +node_js: +- '5.5' + +env: + matrix: + - PATH=$HOME/purescript:$PATH + +install: +- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/v0.11.3/linux64.tar.gz +- tar -xvf $HOME/purescript.tar.gz -C $HOME/ +- chmod a+x $HOME/purescript +- npm install -g bower pulp@next +- bower install + +script: +- export VERSION=branch-job-$TRAVIS_JOB_NUMBER +- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export VERSION=pull-request-job-$TRAVIS_JOB_NUMBER; + fi +- if [[ "$TRAVIS_TAG" != "" ]]; then export VERSION=$TRAVIS_TAG; fi +- travis_wait pulp build +- travis_wait pulp test +- travis_wait make examples docs-examples + +cache: + directories: + - output From 507397113682312e08a51d1b83f68fcced27d4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Sat, 17 Jun 2017 20:19:55 +0200 Subject: [PATCH 3/5] Add repository and license to bower file --- bower.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bower.json b/bower.json index 568877c..33653f7 100644 --- a/bower.json +++ b/bower.json @@ -1,5 +1,10 @@ { "name": "purescript-hyperdrive", + "license": "MPL-2.0", + "repository": { + "type": "git", + "url": "git://github.com/owickstrom/purescript-hyperdrive.git" + }, "ignore": [ "**/.*", "node_modules", From 5d48220950242bf35fc930ece1d69a5d9889353a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Sat, 17 Jun 2017 20:20:41 +0200 Subject: [PATCH 4/5] Build examples properly --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 33b114f..0775701 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ script: - if [[ "$TRAVIS_TAG" != "" ]]; then export VERSION=$TRAVIS_TAG; fi - travis_wait pulp build - travis_wait pulp test -- travis_wait make examples docs-examples +- travis_wait pulp build -I examples cache: directories: From 0de4e3dcf7f3a564a17a2c9e381e9a5e9fabb9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wickstr=C3=B6m?= Date: Sat, 17 Jun 2017 20:21:02 +0200 Subject: [PATCH 5/5] v0.1.0