Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stack
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Commercial Haskell
stack
Commits
6eb1b66b
Commit
6eb1b66b
authored
5 years ago
by
Emanuel Borsboom
Browse files
Options
Downloads
Plain Diff
Merge branch 'stable'
parents
06cda686
cd5d3440
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/scripts/release.hs
+14
-9
14 additions, 9 deletions
etc/scripts/release.hs
with
14 additions
and
9 deletions
etc/scripts/release.hs
+
14
−
9
View file @
6eb1b66b
...
...
@@ -199,12 +199,12 @@ rules global@Global{..} args = do
c
-- 'stack.cabal' is autogenerated by 'stack', delete to ensure not stale
_
<-
liftIO
$
tryJust
(
guard
.
isDoesNotExistError
)
(
removeFile
"stack.cabal"
)
()
<-
cmd0
"install"
gBuildArgs
$
concat
$
concat
[[
"--pedantic --no-haddock-deps
--flag stack:integration-tests
"
]
()
<-
cmd0
"install"
gBuildArgs
integrationTestFlagArgs
$
concat
$
concat
[[
"--pedantic --no-haddock-deps "
]
,[
" --haddock"
|
gTestHaddocks
]
,[
" stack"
]]
let
cmd'
c
=
cmd
(
AddPath
[
tmpDir
]
[]
)
stackProgName
(
stackArgs
global
)
c
()
<-
cmd'
"test"
gBuildArgs
"--pedantic --flag stack:
integration
-t
est
s
--exec stack-integration-test stack"
()
<-
cmd'
"test"
gBuildArgs
integration
T
est
FlagArgs
"--pedantic
--exec stack-integration-test stack"
return
()
copyFileChanged
(
releaseBinDir
</>
binaryName
</>
stackExeFileName
)
out
...
...
@@ -300,13 +300,21 @@ rules global@Global{..} args = do
[
"--local-bin-path="
++
takeDirectory
out
]
"install"
gBuildArgs
integrationTestFlagArgs
"--pedantic"
"--flag stack:integration-tests"
"stack"
)
(
tryJust
(
guard
.
isDoesNotExistError
)
(
removeFile
out
))
where
integrationTestFlagArgs
=
-- Explicitly enabling 'hide-dependency-versions' and 'supported-build' to work around
-- https://github.com/commercialhaskell/stack/issues/4960
[
"--flag=stack:integration-tests"
,
"--flag=stack:hide-dependency-versions"
,
"--flag=stack:supported-build"
]
getBinaryPkgStageFiles
=
do
docFiles
<-
getDocFiles
let
stageFiles
=
concat
...
...
@@ -339,7 +347,8 @@ rules global@Global{..} args = do
_
->
[
binaryExeFileName
,
binaryPkgTarGzFileName
]
binaryPkgZipFileName
=
binaryName
<.>
zipExt
binaryPkgTarGzFileName
=
binaryName
<.>
tarGzExt
binaryExeFileName
=
binaryName
<.>
binaryExt
-- Adding '-bin' to name to work around https://github.com/commercialhaskell/stack/issues/4961
binaryExeFileName
=
binaryName
++
"-bin"
<.>
exe
binaryName
=
concat
[
stackProgName
...
...
@@ -359,10 +368,6 @@ rules global@Global{..} args = do
ascExt
=
".asc"
sha256Ext
=
".sha256"
uploadExt
=
".upload"
binaryExt
=
case
platformOS
of
Windows
->
".exe"
_
->
".bin"
-- | Upload file to Github release.
uploadToGithubRelease
::
Global
->
FilePath
->
Maybe
String
->
Action
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment