diff options
-rw-r--r-- | .circleci/config.yml | 18 | ||||
-rw-r--r-- | packages/tests/src/Numeric/LinearAlgebra/Tests.hs | 2 | ||||
-rw-r--r-- | shell.nix | 4 |
3 files changed, 10 insertions, 14 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 61d0c5a..abdfa0f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -2,33 +2,27 @@ version: 2 | |||
2 | jobs: | 2 | jobs: |
3 | build: | 3 | build: |
4 | docker: | 4 | docker: |
5 | - image: fpco/stack-build | 5 | - image: nixorg/nix:circleci |
6 | steps: | 6 | steps: |
7 | - checkout | 7 | - checkout |
8 | - restore_cache: | 8 | - restore_cache: |
9 | key: stack-deps-{{ checksum "stack.yaml" }} | 9 | key: stack-deps-{{ checksum "stack.yaml" }} |
10 | - run: | 10 | - run: |
11 | name: Setup build toolchain | 11 | name: Setup build toolchain |
12 | command: stack setup | 12 | command: stack --nix setup |
13 | - run: | 13 | - run: |
14 | name: Building dependencies | 14 | name: Building dependencies |
15 | command: stack test --only-snapshot --prefetch | 15 | command: stack --nix test --only-snapshot --prefetch |
16 | - save_cache: | 16 | - save_cache: |
17 | paths: | 17 | paths: |
18 | - "~/.stack" | 18 | - "~/.stack" |
19 | key: stack-deps-{{ checksum "stack.yaml" }} | 19 | key: stack-deps-{{ checksum "stack.yaml" }} |
20 | - run: | 20 | - run: |
21 | name: Set up apt | ||
22 | command: apt update | ||
23 | - run: | ||
24 | name: Installing C packages | ||
25 | command: apt -y install libglpk-dev | ||
26 | - run: | ||
27 | name: Building | 21 | name: Building |
28 | command: stack build --pedantic | 22 | command: stack --nix build --pedantic |
29 | - run: | 23 | - run: |
30 | name: Building tests | 24 | name: Building tests |
31 | command: stack test --pedantic --no-run-tests | 25 | command: stack --nix test --pedantic --no-run-tests |
32 | - run: | 26 | - run: |
33 | name: Running tests | 27 | name: Running tests |
34 | command: stack test | 28 | command: stack --nix test |
diff --git a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs index 960c777..4ed1462 100644 --- a/packages/tests/src/Numeric/LinearAlgebra/Tests.hs +++ b/packages/tests/src/Numeric/LinearAlgebra/Tests.hs | |||
@@ -514,7 +514,7 @@ indexProp g f x = a1 == g a2 && a2 == a3 && b1 == g b2 && b2 == b3 | |||
514 | 514 | ||
515 | -------------------------------------------------------------------------------- | 515 | -------------------------------------------------------------------------------- |
516 | 516 | ||
517 | _sliceTest = utest "slice test" $ and | 517 | _sliceTest = TestList |
518 | [ testSlice (chol . trustSym) (gen 5 :: Matrix R) | 518 | [ testSlice (chol . trustSym) (gen 5 :: Matrix R) |
519 | , testSlice (chol . trustSym) (gen 5 :: Matrix C) | 519 | , testSlice (chol . trustSym) (gen 5 :: Matrix C) |
520 | , testSlice qr (rec :: Matrix R) | 520 | , testSlice qr (rec :: Matrix R) |
@@ -32,7 +32,7 @@ let | |||
32 | inherit (nixpkgs) pkgs; | 32 | inherit (nixpkgs) pkgs; |
33 | 33 | ||
34 | f = { mkDerivation, ad, base, diagrams-lib, diagrams-rasterific, gcc | 34 | f = { mkDerivation, ad, base, diagrams-lib, diagrams-rasterific, gcc |
35 | , hmatrix, hmatrix-gsl, inline-c, plots, pretty, stdenv, sundials, vector }: | 35 | , hmatrix, hmatrix-gsl, HUnit, inline-c, plots, pretty, QuickCheck, stdenv, sundials, vector }: |
36 | 36 | ||
37 | mkDerivation { | 37 | mkDerivation { |
38 | pname = "haskell-sundials"; | 38 | pname = "haskell-sundials"; |
@@ -48,8 +48,10 @@ mkDerivation { | |||
48 | gcc | 48 | gcc |
49 | hmatrix | 49 | hmatrix |
50 | hmatrix-gsl | 50 | hmatrix-gsl |
51 | HUnit | ||
51 | inline-c | 52 | inline-c |
52 | plots | 53 | plots |
54 | QuickCheck | ||
53 | pretty | 55 | pretty |
54 | vector | 56 | vector |
55 | ] ++ (if pkgs.stdenv.isDarwin then [pkgs.darwin.apple_sdk.frameworks.Cocoa] else []); | 57 | ] ++ (if pkgs.stdenv.isDarwin then [pkgs.darwin.apple_sdk.frameworks.Cocoa] else []); |