File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 11language : node_js
2- sudo : required
32dist : trusty
4- node_js : 5
3+ sudo : required
4+ node_js : 6
55env :
66 - PATH=$HOME/purescript:$PATH
77install :
@@ -11,14 +11,13 @@ install:
1111 - chmod a+x $HOME/purescript
1212 - npm install -g bower
1313 - npm install
14- - bower install
1514script :
16- - npm test
15+ - bower install --production
16+ - npm run -s build
17+ - bower install
18+ - npm -s test
1719after_success :
1820- >-
1921 test $TRAVIS_TAG &&
20- psc-publish > .pursuit.json &&
21- curl -X POST http://pursuit.purescript.org/packages \
22- -d @.pursuit.json \
23- -H 'Accept: application/json' \
24- -H "Authorization: token ${GITHUB_TOKEN}"
22+ echo $GITHUB_TOKEN | pulp login &&
23+ echo y | pulp publish --no-push
Original file line number Diff line number Diff line change 2020 " package.json"
2121 ],
2222 "dependencies" : {
23+ "purescript-arrays" : " ^1.0.0-rc.4" ,
2324 "purescript-console" : " ^1.0.0-rc.1" ,
2425 "purescript-either" : " ^1.0.0-rc.1" ,
2526 "purescript-exceptions" : " ^1.0.0-rc.1" ,
2627 "purescript-lists" : " ^1.0.0-rc.1" ,
2728 "purescript-random" : " ^1.0.0-rc.1" ,
2829 "purescript-strings" : " ^1.0.0-rc.1" ,
29- "purescript-transformers" : " ^1.0.0-rc.1" ,
30- "purescript-arrays" : " ^1.0.0-rc.4"
30+ "purescript-transformers" : " ^1.0.0-rc.1"
3131 }
3232}
Original file line number Diff line number Diff line change 22 "private" : true ,
33 "scripts" : {
44 "clean" : " rimraf output && rimraf .pulp-cache" ,
5- "build" : " jshint src && jscs src && pulp build" ,
6- "test" : " jshint src && jscs src && pulp test"
5+ "build" : " jshint src && jscs src && pulp build --censor-lib --strict " ,
6+ "test" : " pulp test"
77 },
88 "devDependencies" : {
99 "jscs" : " ^2.8.0" ,
1010 "jshint" : " ^2.9.1" ,
11- "pulp" : " ^8.1.0" ,
11+ "pulp" : " ^8.2.0" ,
12+ "purescript-psa" : " ^0.3.8" ,
1213 "rimraf" : " ^2.5.0"
1314 }
1415}
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ import Control.Monad.Eff.Console (CONSOLE(), log)
2424import Control.Monad.Eff.Exception (EXCEPTION (), throwException , error )
2525import Control.Monad.Eff.Random (RANDOM ())
2626
27- import Data.List (List (..), replicateM )
27+ import Data.List (List (..))
28+ import Data.Unfoldable (replicateA )
2829
2930import Test.QuickCheck.Arbitrary (class Arbitrary , arbitrary )
3031import Test.QuickCheck.Gen (Gen , evalGen )
@@ -67,7 +68,7 @@ quickCheck' n prop = do
6768-- | The first argument is the _random seed_ to be passed to the random generator.
6869-- | The second argument is the number of tests to run.
6970quickCheckPure :: forall prop . (Testable prop ) => Seed -> Int -> prop -> List Result
70- quickCheckPure s n prop = evalGen (replicateM n (test prop)) { newSeed: s, size: 10 }
71+ quickCheckPure s n prop = evalGen (replicateA n (test prop)) { newSeed: s, size: 10 }
7172
7273-- | The `Testable` class represents _testable properties_.
7374-- |
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ import Data.Int (toNumber)
4242import Data.List (List (..), toUnfoldable )
4343import Data.Maybe (fromMaybe )
4444import Data.Monoid.Additive (Additive (..), runAdditive )
45- import Data.Tuple (Tuple (..))
4645import Data.Tuple (Tuple (..), fst , snd )
4746
4847import Math as M
You can’t perform that action at this time.
0 commit comments