-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/add_ci' into 'master'
Enable GitLab CI See merge request eng/ide/markdown!17
- Loading branch information
Showing
4 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ commonmark | |
deallocation | ||
elsif | ||
gnatdoc | ||
llvm | ||
mailto | ||
parsers | ||
pos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# In this CI, we should only work in reaction to a Merge Request | ||
|
||
workflow: | ||
|
||
rules: | ||
|
||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" | ||
|
||
when: always | ||
|
||
variables: | ||
PIP_INDEX_URL: https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.adacore-it.com/api/v4/projects/it%2Fpackage-registry/packages/pypi/simple | ||
|
||
.basic-setup: | ||
- | | ||
set -x | ||
export PATH=/it/e3/bin:$PATH | ||
- . ~/.aws_container_credentials | ||
|
||
stages: | ||
- build_and_test | ||
- build_dependent | ||
|
||
######### | ||
# BUILD # | ||
######### | ||
|
||
build_and_test: | ||
services: | ||
- image:sandbox | ||
stage: build_and_test | ||
script: | ||
- !reference [.basic-setup] | ||
|
||
- | | ||
# Install GNAT (with gcov) and gcovr | ||
anod install --sandbox-dir /it/wave gnatall | ||
python3 -m pip install gcovr | ||
anod install --sandbox-dir /it/wave vss | ||
# Fetch tests' data | ||
PACKAGE=commonmark-spec.tar.bz2 | ||
DATA_URL=https://gitlab.adacore-it.com/api/v4/projects/eng%2Fide%2Fmarkdown | ||
curl -L --header "JOB-TOKEN: $CI_JOB_TOKEN" \ | ||
$DATA_URL/packages/generic/$PACKAGE/0.0.0/$PACKAGE |\ | ||
tar xjf - | ||
# Build Markdown and run tests | ||
( eval $(anod printenv --sandbox-dir /it/wave gnatall) ;\ | ||
eval $(anod printenv --sandbox-dir /it/wave vss) ;\ | ||
make BUILD_MODE=coverage check ;\ | ||
ENABLE_GCOV=y gcovr --print-summary --cobertura gcov.xml ) | ||
# Run spell checker | ||
- make spellcheck_json | ||
|
||
coverage: /^\s*lines:\s*\d+.\d+\%/ | ||
artifacts: | ||
reports: | ||
coverage_report: | ||
coverage_format: cobertura | ||
path: gcov.xml | ||
codequality: | ||
- spellcheck.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters