Skip to content

Commit

Permalink
Add anod testing to the CI
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux#1630
  • Loading branch information
andrestt committed Aug 1, 2024
1 parent 7bddb42 commit ac93474
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ changelog:
git diff --name-only origin/main..HEAD | sed -n '/CHANGELOG.md/{:a $q0; n; ba}; ${s/.*/No entry added to CHANGELOG.md/p;q1}';
fi

anod_main:
anod_build_and_test:
services:
- image:recordflux
- cpu:16
Expand All @@ -163,19 +163,27 @@ anod_main:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
# Setup anod
- generic_anod_ci
- cat /tmp/ci_env.sh
- . /tmp/ci_env.sh
# Build recordflux with the latest available dependencies (but not
# Build and test recordflux with the latest available dependencies (but not
# necessarily from the same day) to avoid getting blocked by transient
# issues with GNAT etc.
- anod build recordflux $ACI_TRACK_QUALIFIER --latest
- eval `anod printenv recordflux`
- rflx --version
- cp -r /tmp/it/wave/log .
# Execute RecordFlux
- (eval `anod printenv recordflux` && rflx --version)
# Test with anod
- anod test recordflux $ACI_TRACK_QUALIFIER --latest
# Convert the testsuite results and fail the job if there were test failures
- testsuite_reports
# Move logs so that they can be stored as artifacts
- cp -r $ANOD_DEFAULT_SANDBOX_DIR/log .
artifacts:
paths:
- log/*
- __results-recordflux_test/*
when: always

anod_doc:
services:
Expand All @@ -186,17 +194,20 @@ anod_doc:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
# Setup anod
- generic_anod_ci
- cat /tmp/ci_env.sh
- . /tmp/ci_env.sh
# Build recordflux with the latest available dependencies (but not
# necessarily from the same day) to avoid getting blocked by transient
# issues with GNAT etc.
- anod build recordflux-doc $ACI_TRACK_QUALIFIER --latest
- cp -r /tmp/it/wave/log .
# Move logs so that they can be stored as artifacts
- cp -r $ANOD_DEFAULT_SANDBOX_DIR/log .
artifacts:
paths:
- log/*
when: always

commit_messages:
extends: .testing
Expand Down

0 comments on commit ac93474

Please sign in to comment.