Giter Club home page Giter Club logo

stack-hpc-coveralls's People

Contributors

ch3pjw avatar cleverca22 avatar hdgarrood avatar lehins avatar meteficha avatar rimmington avatar rubik avatar wayofthepie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stack-hpc-coveralls's Issues

Support multi-package projects

I separated my project into two packages and now shc fails with this error:

shc: can not find ether-0.5.0.0-HUV2NfyFRgi9DfAPlMIQvQ/Control.Monad.Trans.Ether.State.Strict in [".stack-work/dist/x86_64-linux/Cabal-1.24.1.0/hpc"]

Help with simple setup

I have the following travis config:

install:
- stack ${ARGS} setup --no-terminal

script:
- case "$COVER" of
  true)
    stack ${ARGS} test --coverage --no-terminal
    ./coverage.sh
    ;;
  *)
    stack ${ARGS} test --test-arguments='--plain'
    ;;
  esac

and a coverage script that does this:

#! /bin/sh

travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-$GHCVER.tar.bz2 | tar -xj
shc -- --hpc-dir=$(stack $ARGS path --local-install-root)`/hpc/combined --dont-send combined all

but this doesn't work, and neither does it work without --hpc-dir - I consistently get this error:

shc: readCoverageData/filePath/stackProj: couldn't find distributed-process-extras-0.2.1.2-436qbc7bQkYA8cHMHRpzU2
CallStack (from HasCallStack):
  error, called at src/SHC/Coverage.hs:92:38 in stack-hpc-coveralls-0.0.4.0-3jO1AkdzEnhHM63skfTcNd:SHC.Coverage

Any hints as to what I'm doing wrong?

https://github.com/haskell-distributed/distributed-process-extras

Missing `.tix` file?

Hi again, I can't seem to figure out what I'm missing. Here are the critical parts of my Travis config:

env:
- ARGS="--resolver lts-5.14"

before_install:
# Download and unpack the stack executable                                                                                                                     
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'

# This line does all of the work: installs GHC if necessary, build the library,                                                                                
# executables, and test suites, and runs the test suites. --no-terminal works                                                                                  
# around some quirks in Travis's terminal implementation.                                                                                                      
script: stack $ARGS --no-terminal --install-ghc test

after_script:
  - travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.3.0/shc-linux-x64-7.10.3.tar.bz2 | tar -xj
  - ./shc versions versions-test

# Caching so the next build will be fast too.                                                                                                                  
cache:
  directories:
  - $HOME/.stack

Travis finds the executable fine, but shc fails with:

Couldn't find the file /home/travis/build/aurapm/haskell-versions/.stack-work/install/x86_64-linux/lts-5.14/7.10.3/hpc/versions/versions-test/versions-test.tix

versions-test is the name of my test suite. Any ideas?

Command fails with multiple packages

Simply having this in my stack.yaml fails the command:

packages:
  - '.'
  - location:
      git: [email protected]:creichert/reserve.git
      commit: 1264826d78a22a640d41daaecbfdd4763c86915a
    extra-dep: true
$ stack exec -- shc --repo-token=$COVERALLS_REPO_TOKEN combined all
ghc-pkg: cannot find package reserve
shc: readCreateProcess: stack "exec" "--" "ghc-pkg" "field" "reserve" "key" "--simple-output" (exit 1): failed

I'm not specifically interested in generating the coverage metrics for "extra-dep" packages. I've tried several things and only disabling the location block entirely works.

Any possible workarounds?

Variable not in scope: checkStatus

% stack --version                                                                                                                     1 ↵
Version 1.8.0, Git revision 735240f5b99c343e5d86fa57db0893a3fd05f32a x86_64 hpack-0.28.2

% head stack.yaml 
compiler: ghc-8.2.2
resolver: lts-12.0
packages:
  - .
jobs: 1
extra-deps:
  - Cabal-1.24.2.0
  - acid-state-0.14.3@sha256:45cd613480ce99352f4e3cadd9e00e318b1c67c184924514920194cf08202a65
  - distributed-process-0.7.4@sha256:5c19daef82cd8b82dbe4bc48068351975ece0413b74b829b31277a54deb24d7c
  - fluent-logger-0.2.3.1@sha256:8ff65bbd3a88c55d90baebf345131a1e400b67be0978ad374780ba013091925e

% stack install stack-hpc-coveralls
pureMD5-2.1.3: download
pureMD5-2.1.3: configure
pureMD5-2.1.3: build
pureMD5-2.1.3: copy/register
th-lift-0.7.10: configure   
th-lift-0.7.10: build       
th-lift-0.7.10: copy/register
docopt-0.7.0.5: download    
docopt-0.7.0.5: configure   
docopt-0.7.0.5: build       
docopt-0.7.0.5: copy/register
stack-hpc-coveralls-0.0.4.0: download    
stack-hpc-coveralls-0.0.4.0: configure   
stack-hpc-coveralls-0.0.4.0: build       
Progress 3/4: stack-hpc-coveralls-0.0.4.0

--  While building package stack-hpc-coveralls-0.0.4.0 using:
      /home/filib/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.0.1.0 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/filib/Projects/pirate-studios/treehouse-of-horror/.stack-work/logs/stack-hpc-coveralls-0.0.4.0.log

    Configuring stack-hpc-coveralls-0.0.4.0...
    Preprocessing library for stack-hpc-coveralls-0.0.4.0..
    Building library for stack-hpc-coveralls-0.0.4.0..
    [1 of 6] Compiling SHC.Types        ( src/SHC/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/SHC/Types.o )
    [2 of 6] Compiling SHC.Api          ( src/SHC/Api.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/SHC/Api.o )
    
    /tmp/stack7989/stack-hpc-coveralls-0.0.4.0/src/SHC/Api.hs:48:36: error:
        Variable not in scope:
          checkStatus
            :: ASetter Options b a0 (Maybe (p0 -> p1 -> p2 -> Maybe a1))
       |
    48 |           httpOptions = defaults & checkStatus .~ Just noCheck

Incorrect URL in readme

The fetched archive is missing

$ curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.3.0/shc-linux-x64-$GHCVER.tar.bz2
{"error":"Not Found"}%  

Build is broken

Compilation fails with the following error:

--  While building package stack-hpc-coveralls-0.0.4.0 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Users\NADALE~1\AppData\Local\Temp\hpc-test\.stack-work\logs\stack-hpc-coveralls-0.0.4.0.log

    Configuring stack-hpc-coveralls-0.0.4.0...
    Building stack-hpc-coveralls-0.0.4.0...
    Preprocessing library stack-hpc-coveralls-0.0.4.0...
    [1 of 6] Compiling SHC.Types        ( src\SHC\Types.hs, .stack-work\dist\ca59d0ab\build\SHC\Types.o )
    [2 of 6] Compiling SHC.Utils        ( src\SHC\Utils.hs, .stack-work\dist\ca59d0ab\build\SHC\Utils.o )
    [3 of 6] Compiling SHC.Stack        ( src\SHC\Stack.hs, .stack-work\dist\ca59d0ab\build\SHC\Stack.o )
    [4 of 6] Compiling SHC.Lix          ( src\SHC\Lix.hs, .stack-work\dist\ca59d0ab\build\SHC\Lix.o )
    [5 of 6] Compiling SHC.Coverage     ( src\SHC\Coverage.hs, .stack-work\dist\ca59d0ab\build\SHC\Coverage.o )
    [6 of 6] Compiling SHC.Api          ( src\SHC\Api.hs, .stack-work\dist\ca59d0ab\build\SHC\Api.o )

    C:\Users\NADALE~1\AppData\Local\Temp\stack2212\stack-hpc-coveralls-0.0.4.0\src\SHC\Api.hs:48:36: error:
        Variable not in scope:
          checkStatus
            :: ASetter Options b a0 (Maybe (t2 -> t1 -> t0 -> Maybe a1))

New release

With stack 0.1.8.0 out, it'd be nice to have an official release with PR #6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.