haskell-servant / servant-elm

Automatically derive Elm functions to query servant webservices
BSD 3-Clause "New" or "Revised" License
164 stars 48 forks source link

Test suite failure in Stackage build #22

Closed snoyberg closed 7 years ago

snoyberg commented 7 years ago
Linking dist/build/servant-elm-test/servant-elm-test ...
> /tmp/stackage-build13/servant-elm-0.3.0.0$ dist/build/servant-elm-test/servant-elm-test
/bin/sh: 1: elm-package: not found

Compile
  generateElmForAPI
    creates compilable javascript FAILED [1]
Generate
  encoding a simple api
    does it

Failures:

  test/CompileSpec.hs:31: 
  1) Compile.generateElmForAPI creates compilable javascript
       uncaught exception: IOException of type OtherError (callCommand: elm-package install --yes (exit 127): failed)

Randomized with seed 496767063

Finished in 0.0188 seconds
2 examples, 1 failure
mattjbray commented 7 years ago

@snoyberg Thanks. Some of the tests require an Elm install. I've moved those to a separate test-suite section, which is not built by default.

(I'm assuming installing Elm on the Stackage build server is not an option.)

snoyberg commented 7 years ago

We could install it, it's just a matter of modifying the Dockerfile that creates the build image. But this is certainly simpler, thanks!