Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test validity of built package in CI #40

Closed
mgajda opened this issue Jun 11, 2016 · 2 comments
Closed

Test validity of built package in CI #40

mgajda opened this issue Jun 11, 2016 · 2 comments

Comments

@mgajda
Copy link

mgajda commented Jun 11, 2016

It seems that at least one previously reported issue has stemmed from the fact that CircleCI configuration does not test for validity of the built package.

I do not use CircleCI yet, so it would take a little bit more work for me to submit a patch, but here is how I do it on Travis CI:

  # tests that a source-distribution can be generated
  - cabal-$CABALVER sdist
  - echo "Package distribution built."

  # check that the generated source-distribution can be built & installed
  - export SRC_TGZ=$(cabal-$CABALVER info . | awk '{print $2 ".tar.gz";exit}') ;
    cd dist/;
    if [ -f "$SRC_TGZ" ]; then
       cabal-$CABALVER sandbox init
       cabal-$CABALVER install "$SRC_TGZ";
    else
       echo "expected '$SRC_TGZ' not found";
       exit 1;
    fi  
  - echo "Package built successfully!"
@mboes
Copy link
Member

mboes commented Jun 11, 2016

Good idea. If at all possible though it would be nice if we only had to build once.

@facundominguez
Copy link
Member

Closing this as #154 removes support for stack/cabal in favor of bazel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants