Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-bee
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
1
Merge Requests
1
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
haskell-bee
Commits
4b7dd791
Verified
Commit
4b7dd791
authored
Dec 17, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI] add redis integration tests
parent
9cef1fba
Pipeline
#7151
failed with stages
in 11 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
.gitlab-ci.yml
.gitlab-ci.yml
+30
-1
No files found.
.gitlab-ci.yml
View file @
4b7dd791
...
@@ -81,12 +81,41 @@ integration-tests-pgmq:
...
@@ -81,12 +81,41 @@ integration-tests-pgmq:
-
cabal update
-
cabal update
script
:
script
:
-
export POSTGRES_HOST=pgmq
-
export POSTGRES_HOST=pgmq
-
export REDIS_HOST=redis
#- cabal v2-test test-pgmq-integration
#- cabal v2-test test-pgmq-integration
# cabal v2-test -j seems not to work correctly, so we just run the integration test
# cabal v2-test -j seems not to work correctly, so we just run the integration test
-
cabal v2-run haskell-bee-pgmq:pgmq-test-integration -- +RTS -N -RTS
-
cabal v2-run haskell-bee-pgmq:pgmq-test-integration -- +RTS -N -RTS
integration-tests-pgmq
:
stage
:
integration-tests
image
:
haskell:9.4.8-slim
services
:
-
name
:
docker.io/redis:7.2
alias
:
redis
variables
:
# https://stackoverflow.com/questions/77173109/error-link-is-not-supported-in-gitlab-ci-cd-pipeline-when-executing-an-image-as
FF_NETWORK_PER_BUILD
:
1
REDIS_HOST
:
redis
# https://stackoverflow.com/questions/76340763/what-gitlab-ci-configuration-will-reliably-cache-haskell-package-dependencies-bu
cache
:
key
:
"
v0-cabal"
paths
:
-
"
.cabal"
before_script
:
-
|
cat >cabal.project.local <<EOF
store-dir: $CI_PROJECT_DIR/.cabal
remote-repo-cache: $CI_PROJECT_DIR/.cabal/packages
EOF
-
apt-get update -qq && apt-get install -y -qq libpq-dev
-
cabal update
script
:
#- cabal v2-test test-pgmq-integration
# cabal v2-test -j seems not to work correctly, so we just run the integration test
-
cabal v2-run haskell-bee-redis:redis-test-integration -- +RTS -N -RTS
integration-tests-stm
:
integration-tests-stm
:
stage
:
integration-tests
stage
:
integration-tests
image
:
haskell:9.4.8-slim
image
:
haskell:9.4.8-slim
...
...
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