Skip to content

Commit

Permalink
Gnarly workaround for haskell-CI/haskell-ci#184
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Oct 12, 2018
1 parent 13e3e61 commit e04f31c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ install:
- "printf 'packages: \".\" \"./examples\"\\n' > cabal.project"
- echo 'package blank-canvas-examples' >> cabal.project
- "echo ' flags: +examples' >> cabal.project"
- "echo 'source-repository-package' >> cabal.project"
- "echo ' type: git' >> cabal.project"
- "echo ' location: https://github.com/ku-fpg/remote-monad' >> cabal.project"
- "echo ' tag: 3761a8ad889e9bd06a562d36cafb182513dbb6e1' >> cabal.project"
- touch cabal.project.local
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- blank-canvas | grep -vw -- blank-canvas-examples | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- cat cabal.project || true
Expand All @@ -120,6 +124,10 @@ script:
- "printf 'packages: blank-canvas-*/*.cabal blank-canvas-examples-*/*.cabal\\n' > cabal.project"
- echo 'package blank-canvas-examples' >> cabal.project
- "echo ' flags: +examples' >> cabal.project"
- "echo 'source-repository-package' >> cabal.project"
- "echo ' type: git' >> cabal.project"
- "echo ' location: https://github.com/ku-fpg/remote-monad' >> cabal.project"
- "echo ' tag: 3761a8ad889e9bd06a562d36cafb182513dbb6e1' >> cabal.project"
- touch cabal.project.local
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- blank-canvas | grep -vw -- blank-canvas-examples | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
- cat cabal.project || true
Expand Down

1 comment on commit e04f31c

@RyanGlScott
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do I have to do this twice? See haskell-CI/haskell-ci#185.

Please sign in to comment.