Commit 410fda10 authored by Valentin Reis's avatar Valentin Reis
Browse files

updates gitlab-ci file, readme

parent ef1f7d6e
Pipeline #9216 failed with stages
in 3 seconds
stages:
- source
- lib
ormolu:
stage: source
tags:
- kvm
- nix
script:
- |
nix-shell --pure -E '
let pkgs = (import ./.);
in pkgs.mkShell {
buildInputs = [pkgs.fd pkgs.ormolu];
shellHook =
"export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive \n" +
"export LANG=en_US.UTF-8";
}
' --run bash <<< '
RETURN=0
cd hsnrm
for F in $(fd -e hs); do
ormolu -o -XTypeApplications -m check $F
if [ $? -ne 0 ]; then
echo "[!] $F does not pass ormolu haskell format check." >&2
RETURN=1
fi
done
if [ $RETURN -ne 0 ]; then exit 1; fi
'
hlint:
stage: source
tags:
- kvm
- nix
script:
- nix-shell --pure -p '(import ./.).hlint' --run bash <<< 'hlint hsnrm/ --hint=./.hlint.yaml'
black:
stage: source
tags:
- kvm
- nix
script:
- |
nix-shell --pure -p '(import ./.).nrmPythonPackages.black' --run bash <<< '
black validation/*.py --check
'
dhall-format:
stage: source
tags:
- kvm
- nix
script:
- |
nix-shell --pure -p '(import ./.).fd' '(import ./.).haskellPackages.dhall' --run bash <<< '
RETURN=0
for F in $(fd -e dhall); do
dhall format < $F | cmp -s $F -
if [ $? -ne 0 ]; then
echo "[!] $F does not pass clang-format format check." >&2
RETURN=1
fi
done
if [ $RETURN -ne 0 ]; then exit 1; fi
'
nix-build-sharedlib:
stage: lib
tags:
- kvm
- nix
script: nix-build -A haskellPackages.hbandit --no-build-output
nix-build-hslib:
stage: lib
tags:
- kvm
- nix
script: nix-build -A haskellPackages.nrmbin --no-build-output
# hbandit
Warning: Unmaintained (but [Nix](https://nixos.org)-pinned).
Multi-Armed Bandit implementations: UCB & EXP family of algorithms, BwCR.
## Install
Provision using your Cabal or Nix toolchain. Both cabal file and nix packages
Provision using either Cabal or Nix toolchain. Both cabal file and nix packages
are provided in the repository.
Dependencies: hackage packages, glpk
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment