File tree Expand file tree Collapse file tree 9 files changed +31
-34
lines changed Expand file tree Collapse file tree 9 files changed +31
-34
lines changed Original file line number Diff line number Diff line change 11sudo : false
22
3- language : node_js
4- node_js :
5- - " 0.12"
6-
7- addons :
8- apt :
9- sources :
10- - hvr-ghc
11- packages :
12- - cabal-install-1.22
13- - ghc-7.10.1
14-
15-
16- before_install :
17- - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:./Elm-Platform/0.15.1/.cabal-sandbox/bin:$PATH
18- - runhaskell BuildFromSource.hs 0.15.1
19- - export PATH="`pwd`"/Elm-Platform/0.15.1/.cabal-sandbox/bin:$PATH
3+ env :
4+ matrix :
5+ - ELM_VERSION=0.16.0 TARGET_NODE_VERSION=node
6+ - ELM_VERSION=0.16.0 TARGET_NODE_VERSION=0.12
7+
8+ install :
9+ - nvm install $TARGET_NODE_VERSION
10+ - nvm use $TARGET_NODE_VERSION
11+ - node --version
12+ - npm --version
13+ - npm install -g elm@$ELM_VERSION
14+
15+ script : ./ci.sh
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ var elm = {
1717 'elm-package' : 'elm-package'
1818} ;
1919
20+ if ( process . argv [ 2 ] == "--version" ) {
21+ console . log ( require ( path . join ( __dirname , ".." , "package.json" ) ) . version ) ;
22+ process . exit ( 0 ) ;
23+ }
24+
2025if ( process . argv [ 2 ] == "init" ) {
2126 var copyTemplate = function ( templateName ) {
2227 if ( fs . existsSync ( templateName ) ) {
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ function assertTestSuccess() {
2323echo " $0 : Installing elm-test..."
2424npm install --global
2525
26+ echo " $0 : Verifying installed elm-test version..."
27+ elm-test --version
28+
2629echo " $0 : Testing examples..."
2730cd examples
2831assertTestSuccess PassingTests.elm
Original file line number Diff line number Diff line change @@ -3,10 +3,7 @@ module Main where
33import Basics exposing (..)
44import Signal exposing (..)
55
6- import ElmTest.Assertion as A exposing (assertEqual , assert )
7- import ElmTest.Run as R
8- import ElmTest.Runner.Console exposing (runDisplay )
9- import ElmTest.Test exposing (..)
6+ import ElmTest exposing (..)
107import Console exposing (IO , run )
118import Task
129import String
@@ -19,7 +16,7 @@ tests = suite "A Test Suite"
1916 ]
2017
2118console : IO ()
22- console = runDisplay tests
19+ console = consoleRunner tests
2320
2421port runner : Signal (Task .Task x () )
2522port runner = run console
Original file line number Diff line number Diff line change @@ -3,10 +3,7 @@ module Main where
33import Basics exposing (..)
44import Signal exposing (..)
55
6- import ElmTest.Assertion as A exposing (assertEqual , assert )
7- import ElmTest.Run as R
8- import ElmTest.Runner.Console exposing (runDisplay )
9- import ElmTest.Test exposing (..)
6+ import ElmTest exposing (..)
107import Console exposing (IO , run )
118import Task
129import String
@@ -18,7 +15,7 @@ tests = suite "A Test Suite"
1815 ]
1916
2017console : IO ()
21- console = runDisplay tests
18+ console = consoleRunner tests
2219
2320port runner : Signal (Task .Task x () )
2421port runner = run console
Original file line number Diff line number Diff line change 88 ],
99 "exposed-modules" : [],
1010 "dependencies" : {
11- "deadfoxygrandpa/elm-test" : " 2.0.0 <= v < 3 .0.0" ,
11+ "deadfoxygrandpa/elm-test" : " 2.0.0 <= v < 4 .0.0" ,
1212 "elm-lang/core" : " 2.0.0 <= v < 4.0.0" ,
1313 "laszlopandy/elm-console" : " 1.0.1 <= v < 2.0.0"
1414 },
Original file line number Diff line number Diff line change 11{
22 "name" : " elm-test" ,
3- "version" : " 0.6.5 " ,
3+ "version" : " 0.16.0-beta " ,
44 "description" : " Run elm-test suites." ,
55 "main" : " elm-test.js" ,
66 "engines" : {
7- "node" : " >=0.10 .0"
7+ "node" : " >=0.12 .0"
88 },
99 "scripts" : {
1010 "test" : " ./ci.sh"
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ module Main where
22
33import Signal exposing (Signal )
44
5- import ElmTest.Runner.Console exposing (runDisplay )
5+ import ElmTest exposing (consoleRunner )
66import Console exposing (IO , run )
77import Task
88
99import Tests
1010
1111console : IO ()
12- console = runDisplay Tests . all
12+ console = consoleRunner Tests . all
1313
1414port runner : Signal (Task .Task x () )
1515port runner = run console
Original file line number Diff line number Diff line change 11module Tests where
22
3- import ElmTest.Assertion exposing (..)
4- import ElmTest.Test exposing (..)
3+ import ElmTest exposing (..)
54
65import String
76
You can’t perform that action at this time.
0 commit comments