Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
istex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
crawlers
istex
Commits
171a2105
Verified
Commit
171a2105
authored
Mar 19, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] add simple .gitlab-ci
Modify app to return exit code when error happened.
parent
a242ae85
Pipeline
#7464
failed with stage
in 60 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
.gitlab-ci.yml
.gitlab-ci.yml
+12
-0
Main.hs
app/Main.hs
+4
-1
No files found.
.gitlab-ci.yml
0 → 100644
View file @
171a2105
# Optimising CI speed by using tips from https://blog.nimbleways.com/let-s-make-faster-gitlab-ci-cd-pipelines/
image
:
cgenie/gargantext:9.6.6
stages
:
-
test
cabal
:
stage
:
test
script
:
-
nix --experimental-features 'nix-command flakes' build
-
nix --experimental-features 'nix-command flakes' run
allow_failure
:
false
app/Main.hs
View file @
171a2105
...
@@ -2,12 +2,15 @@ module Main where
...
@@ -2,12 +2,15 @@ module Main where
import
ISTEX
import
ISTEX
import
ISTEX.Client
import
ISTEX.Client
import
System.Exit
main
::
IO
()
main
::
IO
()
main
=
do
main
=
do
res
<-
getMetadataWith
"artificial intelligence"
(
Just
10
)
res
<-
getMetadataWith
"artificial intelligence"
(
Just
10
)
case
res
of
case
res
of
(
Left
err
)
->
print
$
"Error: "
<>
show
err
(
Left
err
)
->
do
print
$
"Error: "
<>
show
err
exitWith
$
ExitFailure
1
(
Right
val
)
->
do
(
Right
val
)
->
do
print
$
take
5
$
_documents_hits
val
print
$
take
5
$
_documents_hits
val
-- print $ _abstract <$> (_hits val)
-- print $ _abstract <$> (_hits val)
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