-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix to build with GHC 8.8 and fix error handling bug To work with the addition of MonadFail constraint to parseTimeM in the time library, the underlying monad was changed from Either to Maybe as it has a MonadFail instance. * Update build to run tests against local minio server
- Loading branch information
Showing
6 changed files
with
30 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ language: haskell | |
git: | ||
depth: 5 | ||
|
||
cabal: "2.4" | ||
cabal: "3.0" | ||
|
||
cache: | ||
directories: | ||
|
@@ -19,11 +19,21 @@ matrix: | |
- ghc: 8.2.2 | ||
- ghc: 8.4.4 | ||
- ghc: 8.6.5 | ||
- ghc: 8.8.1 | ||
|
||
# Stack | ||
- ghc: 8.6.5 | ||
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml" | ||
|
||
before_install: | ||
- sudo apt-get install devscripts | ||
- mkdir /tmp/minio /tmp/certs | ||
- (cd /tmp/minio; wget https://dl.min.io/server/minio/release/linux-amd64/minio; chmod +x ./minio) | ||
- (cd /tmp/certs; openssl req -newkey rsa:2048 -nodes -keyout private.key -x509 -days 36500 -out public.crt -subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=localhost/[email protected]") | ||
- sudo cp /tmp/certs/public.crt /usr/local/share/ca-certificates/ | ||
- sudo update-ca-certificates | ||
- MINIO_ACCESS_KEY=minio MINIO_SECRET_KEY=minio123 /tmp/minio/minio server --quiet --certs-dir /tmp/certs data 2>&1 > minio.log & | ||
|
||
install: | ||
- | | ||
if [ -z "$STACK_YAML" ]; then | ||
|
@@ -43,9 +53,9 @@ install: | |
script: | ||
- | | ||
if [ -z "$STACK_YAML" ]; then | ||
cabal new-test --enable-tests | ||
MINIO_LOCAL=1 MINIO_SECURE=1 cabal new-test --enable-tests | ||
else | ||
stack test --system-ghc | ||
MINIO_LOCAL=1 MINIO_SECURE=1 stack test --system-ghc | ||
fi | ||
notifications: | ||
|
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
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