-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
107 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
: ${GHCVER?} | ||
: ${CABALVER?} | ||
|
||
travis_retry () { | ||
$* || (sleep 1 && $*) || (sleep 2 && $*) | ||
} | ||
|
||
gpg --version | ||
|
||
if ! [ -x $HOME/.ghcup/bin/ghcup ]; then | ||
mkdir -p $HOME/.ghcup/bin | ||
cd $HOME/.ghcup/bin | ||
travis_retry curl -LO https://github.com/haskell/ghcup/releases/download/0.0.7/ghcup | ||
travis_retry curl -LO https://github.com/haskell/ghcup/releases/download/0.0.7/ghcup.asc | ||
travis_retry gpg --keyserver keyserver.ubuntu.com --recv-keys 256844E8AE55008AF197C1B7511B62C09D50CD28 | ||
gpg --verify ghcup.asc ghcup | ||
chmod +x $HOME/.ghcup/bin/ghcup | ||
fi | ||
|
||
export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH" | ||
|
||
ghcup set "$GHCVER" || ghcup install "$GHCVER" && ghcup set "$GHCVER" | ||
ghcup install-cabal "$CABALVER" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
language: c | ||
|
||
dist: xenial | ||
|
||
matrix: | ||
include: | ||
- env: GHCVER=8.6.3 CABALVER=2.4.1.0 | ||
os: linux | ||
sudo: required | ||
- env: GHCVER=8.4.4 CABALVER=2.4.1.0 | ||
os: linux | ||
sudo: required | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libnuma-dev | ||
|
||
before_install: | ||
- .ci/travis-install.sh | ||
- export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH" | ||
|
||
install: | ||
- cabal v2-update | ||
- cabal v2-install -j stylish-haskell hlint | ||
|
||
script: | ||
- .ci/check-haskell-format.sh | ||
- hlint . | ||
- cabal v2-configure --enable-tests | ||
# wtflol: | ||
- 'echo -e "package gossip\n ghc-options: -Werror" >> cabal.project.local' | ||
- cat cabal.project.local | ||
- cabal v2-build -j all | ||
- cabal v2-test -j all | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cabal/packages | ||
- $HOME/.cabal/store | ||
- $HOME/.cabal/bin | ||
- $HOME/.ghcup | ||
|
||
before_cache: | ||
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log | ||
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index* | ||
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index* | ||
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json | ||
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/hackage-security-lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
resolver: lts-12.17 | ||
resolver: lts-13.6 | ||
packages: | ||
- . | ||
extra-deps: | ||
- hedgehog-quickcheck-0.1 | ||
- serialise-0.2.1.0 | ||
- focus-0.1.5.2@sha256:fc5c76a5be3a9a1c456106d6f389939299c7e05a1a24938b909f043e36a3e37b | ||
- stm-containers-0.2.16@sha256:e98efa8dcf0045ea8a78a04b4e2763cf2d8bc33aad0750e2f30a67f8f4e933b1 |