-
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.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
- Loading branch information
1 parent
a9388a3
commit fe32cb7
Showing
15 changed files
with
91 additions
and
50 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.orig | ||
*.tix | ||
.ghc.environment.* | ||
dist | ||
dist-* | ||
|
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 @@ | ||
# performabot | ||
|
||
[![CircleCI](https://circleci.com/gh/saschagrunert/performabot.svg?style=shield)](https://circleci.com/gh/saschagrunert/performabot) | ||
[![Coverage](https://codecov.io/gh/saschagrunert/performabot/branch/master/graph/badge.svg)](https://codecov.io/gh/saschagrunert/performabot) | ||
[![Coverage](https://coveralls.io/repos/github/saschagrunert/performabot/badge.svg?branch=master)](https://coveralls.io/github/saschagrunert/performabot?branch=master) | ||
[![Doc](https://img.shields.io/badge/doc-performabot-orange.svg)](https://saschagrunert.github.io/performabot) | ||
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/saschagrunert/performabot/blob/master/LICENSE) |
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,7 +1,7 @@ | ||
{ | ||
"url": "https://github.com/nixos/nixpkgs", | ||
"rev": "1a28cf89432d5f3c06134c20f866570a2594e149", | ||
"date": "2019-06-03T05:52:47-07:00", | ||
"sha256": "18prhyilncrmrh6n4bprzs37g8q5bfa68n39d3pc1cm77p67zma5", | ||
"rev": "741d20c900025c4e5bc6f14a5703bd9340461640", | ||
"date": "2019-06-04T17:02:45+02:00", | ||
"sha256": "07qfbd7hlzncyv0bxyyqy5ifchmvfw0rfrf0g9zc8jq71810rqx9", | ||
"fetchSubmodules": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let | ||
pkgs = (import ./nixpkgs.nix { }).pkgsMusl; | ||
in | ||
(pkgs.haskellPackages.callPackage ./default.nix { }).overrideAttrs(old: { | ||
enableSharedExecutables = false; | ||
enableSharedLibraries = false; | ||
configureFlags = [ | ||
"--ghc-option=-optl=-static" | ||
"--extra-lib-dirs=${pkgs.gmp6.override { withStatic = true; }}/lib" | ||
"--extra-lib-dirs=${pkgs.zlib.static}/lib" | ||
"--extra-lib-dirs=${pkgs.libffi.overrideAttrs | ||
(old: { dontDisableStatic = true; })}/lib" | ||
"--disable-executable-stripping" | ||
]; | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- | The main test module | ||
-- | ||
-- @since 0.1.0 | ||
module Main ( main ) where | ||
|
||
import ParserSpec ( parserSpec ) | ||
|
||
import Test.Tasty | ||
( TestTree, defaultMain, localOption, testGroup ) | ||
import Test.Tasty.Hspec ( testSpec ) | ||
import Test.Tasty.QuickCheck ( QuickCheckTests(QuickCheckTests) ) | ||
|
||
-- The main test routine | ||
main :: IO () | ||
main = do | ||
uTests <- unitTests | ||
defaultMain . opts $ testGroup "Tests" [ uTests ] | ||
where | ||
opts = localOption $ QuickCheckTests 5000 | ||
|
||
-- Unit tests based on hspec | ||
unitTests :: IO TestTree | ||
unitTests = do | ||
parserUnitTests <- testSpec "Parser.hs" parserSpec | ||
return $ testGroup "Unit" [ parserUnitTests ] |
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,13 @@ | ||
-- | The parser tests | ||
-- | ||
-- @since 0.1.0 | ||
module ParserSpec ( parserSpec ) where | ||
|
||
import Parser ( parse ) | ||
|
||
import Test.Tasty.Hspec ( Spec, it, parallel, shouldBe ) | ||
|
||
-- Parser.hs related unit tests | ||
parserSpec :: Spec | ||
parserSpec = parallel $ it "should succeed" $ parse "test" `shouldBe` True | ||
|
This file was deleted.
Oops, something went wrong.