File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33set -eux
44
5+ mkdir -p ~ /.local/bin;
6+ if [ ` uname` = " Darwin" ]; then
7+ curl -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include ' */stack' -C ~ /.local/bin;
8+ else
9+ curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~ /.local/bin ' */stack' ;
10+ fi ;
11+ stack --no-terminal setup;
12+
513case " $BUILD " in
614 stack)
7- mkdir -p ~ /.local/bin;
8- if [ ` uname` = " Darwin" ]; then
9- curl -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include ' */stack' -C ~ /.local/bin;
10- else
11- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~ /.local/bin ' */stack' ;
12- fi
13- stack --no-terminal setup;;
15+ ;;
1416 cabal)
1517mkdir -p $HOME /.cabal
1618cat > $HOME /.cabal/config << EOF
Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ install:
7474 cabal)
7575 cabal --version;
7676 travis_retry cabal update;
77- cabal install --only-dependencies --constraint="ignore +without-pcre" --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0;;
77+ rm -f $(stack path --dist-dir)/stack-*.tar.gz;
78+ stack sdist --pvp-bounds=both;
79+ tar xf $(stack path --dist-dir)/stack-*.tar.gz --wildcards --strip-components=1 '*/stack.cabal';
80+ cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0;;
7881 esac
7982
8083script :
You can’t perform that action at this time.
0 commit comments