diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0775701 --- /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 pulp build -I examples + +cache: + directories: + - output 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", 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)