Skip to content

Commit

Permalink
Add happy to hs-tools.
Browse files Browse the repository at this point in the history
This tool fails to install via stack on travis because an existing happy
is needed, so we just pre-compile it.
  • Loading branch information
iphydf committed Mar 7, 2020
1 parent ba937a2 commit 12ed35e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ script:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --no-terminal install hlint pandoc stylish-haskell
- stack --no-terminal install hlint pandoc stylish-haskell happy
- travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-7.10.3.tar.bz2 | tar -xj -C $HOME/.local/bin
- cp -a bin $HOME/.local/
# TODO(iphydf): Figure out how to do this more generically. How were we supposed
# to know that this file is needed and can be found here?
- cp $HOME/.stack/snapshots/x86_64-linux/*/8.8.2/share/x86_64-linux-ghc-8.8.2/hlint-2.2.11/hlint.yaml $HOME/.local/bin/data/
- (WORK=`pwd` && cd $HOME && tar zcf $WORK/hs-tools-$TRAVIS_TAG.tar.gz -C $HOME
.local/bin
.stack/snapshots/x86_64-linux/*/8.8.2/share/x86_64-linux-ghc-8.8.2/happy-1.19.12
.stack/snapshots/x86_64-linux/*/8.8.2/share/x86_64-linux-ghc-8.8.2/hlint-2.2.11
.stack/snapshots/x86_64-linux/*/8.8.2/share/x86_64-linux-ghc-8.8.2/pandoc-2.9.1.1)

Expand Down

0 comments on commit 12ed35e

Please sign in to comment.