Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bookme
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher League
bookme
Commits
1b7469ea
Commit
1b7469ea
authored
Jan 02, 2019
by
Christopher League
🖥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nix specification, fix test
parent
884c9ebb
Pipeline
#543
passed with stage
in 5 minutes and 17 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
11 deletions
+53
-11
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
default.nix
default.nix
+47
-0
shell.nix
shell.nix
+3
-0
test/Handler/HomeSpec.hs
test/Handler/HomeSpec.hs
+1
-10
No files found.
.gitignore
View file @
1b7469ea
...
...
@@ -22,3 +22,4 @@ bookme.cabal
/TAGS
/deps.png
/devenv.sh
/result
.gitlab-ci.yml
View file @
1b7469ea
...
...
@@ -6,7 +6,7 @@ before_script:
build
:
script
:
-
stack
build
-
stack
test
cache
:
paths
:
...
...
default.nix
0 → 100644
View file @
1b7469ea
{
nixpkgs
?
import
<
nixpkgs
>
{}
}:
with
nixpkgs
;
let
stackageVersion
=
"lts-1110"
;
stackageSrc
=
pkgs
.
fetchgit
{
url
=
"https://github.com/typeable/nixpkgs-stackage.git"
;
rev
=
"7c94ec65e12850e7dd5282e83a6da91f88cb8857"
;
sha256
=
"1ihsbgb9agg1f5q7mk3ycja6njbrg1dqlxniav47kyr9cm5ng0kn"
;
};
gogolSrc
=
pkgs
.
fetchgit
{
url
=
"https://github.com/brendanhay/gogol.git"
;
rev
=
"344c9f781560e1ed8395b17e370ba1b085f2edc2"
;
sha256
=
"0f48mh7f2ifk3b7rjwgn9cwmi6845xv9zvs07khycbk70959pk1n"
;
};
stackageOverlay
=
import
stackageSrc
;
nixpkgs
'
=
import
pkgs
.
path
{
overlays
=
[
stackageOverlay
];
};
haskell
=
nixpkgs
'
.
pkgs
.
haskell
;
mkNix
=
name
:
loc
:
pkgs
.
runCommand
name
{}
''
${
pkgs
.
cabal2nix
}
/bin/cabal2nix
${
loc
}
>$out
''
;
gogolCoreNix
=
mkNix
"gogol-core.nix"
"
${
gogolSrc
}
/core"
;
gogolNix
=
mkNix
"gogol.nix"
"
${
gogolSrc
}
/gogol"
;
gogolCalNix
=
mkNix
"gogol-cal.nix"
"
${
gogolSrc
}
/gogol-apps-calendar"
;
bookmeNix
=
mkNix
"bookme.nix"
./.
;
hpkgs
=
haskell
.
packages
.
stackage
.
${
stackageVersion
}
.
override
{
overrides
=
self
:
super
:
{
gogol-core
=
self
.
callPackage
gogolCoreNix
{};
gogol
=
self
.
callPackage
gogolNix
{};
gogol-apps-calendar
=
self
.
callPackage
gogolCalNix
{};
alex
=
haskell
.
lib
.
dontCheck
super
.
alex
;
bookme
=
self
.
callPackage
bookmeNix
{};
# mkDerivation = args: super.mkDerivation (args // {
# enableLibraryProfiling = false;
# doHoogle = false;
# doHaddock = false;
# });
};
};
in
haskell
.
lib
.
justStaticExecutables
hpkgs
.
bookme
shell.nix
0 → 100644
View file @
1b7469ea
{
nixpkgs
?
import
<
nixpkgs
>
{}
}:
(
import
./default.nix
{
inherit
nixpkgs
;
})
.
env
test/Handler/HomeSpec.hs
View file @
1b7469ea
...
...
@@ -14,13 +14,4 @@ spec =
it
"loads the index and checks it looks right"
$
do
get
HomeR
statusIs
200
htmlAnyContain
"h1"
"a modern framework for blazing fast websites"
request
$
do
setMethod
"POST"
setUrl
HomeR
addToken
fileByLabelExact
"Choose a file"
"test/Spec.hs"
"text/plain"
-- talk about self-reference
byLabelExact
"What's on the file?"
"Some Content"
-- more debugging printBody
htmlAllContain
".upload-response"
"text/plain"
htmlAllContain
".upload-response"
"Some Content"
htmlAnyContain
"h1"
"Find time to meet"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment