Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
idg
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
8
Merge Requests
8
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ResearchAndDevelopment
idg
Commits
09051f1d
Commit
09051f1d
authored
Jan 26, 2021
by
Lars Krombeen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ci optimization
parent
1e50de43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
.gitlab-ci.yml
.gitlab-ci.yml
+5
-7
docker/ubuntu_20_04_base
docker/ubuntu_20_04_base
+2
-1
docker/ubuntu_20_04_integration
docker/ubuntu_20_04_integration
+1
-1
No files found.
.gitlab-ci.yml
View file @
09051f1d
...
...
@@ -3,7 +3,8 @@
workflow
:
rules
:
-
if
:
'
$CI_MERGE_REQUEST_TITLE
=~
/(?i)(^WIP.*)/
||
$CI_MERGE_REQUEST_TITLE
=~
/(?i)(^DRAFT.*)/'
# don't create a pipeline if its a commit pipeline, on a branch and that branch has open merge requests (bc we will get a MR build instead)
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when
:
never
-
when
:
always
...
...
@@ -32,8 +33,6 @@ clang-format:
stage
:
build
needs
:
[
"
build-base"
]
image
:
idg_base:${CI_COMMIT_SHORT_SHA}
before_script
:
-
pip3 install clang-format==9.0.0
script
:
-
./scripts/run-clang-format.sh
rules
:
...
...
@@ -84,7 +83,6 @@ idg-test:
needs
:
[
"
build-base"
]
image
:
idg_base:${CI_COMMIT_SHORT_SHA}
script
:
-
pip3 install gcovr
-
mkdir build
-
cd build
-
cmake .. -DCMAKE_CXX_FLAGS="-coverage" -DCMAKE_EXE_LINKER_FLAGS="-coverage" -DBUILD_TESTING=On
...
...
@@ -92,8 +90,9 @@ idg-test:
-
export LD_LIBRARY_PATH=$(pwd)/lib:$LD_LIBRARY_PATH
-
ctest -j8 --verbose -LE integration
# Capture coverage
-
gcovr -r .. -e '.*/tests/.*' -e '.*/CompilerIdCXX/.*' -e '.*/external/.*'
-
gcovr -r .. -e '.*/tests/.*' -e '.*/CompilerIdCXX/.*' -e '.*/external/.*' --xml > coverage.xml
-
gcovr -r .. -e '.*/tests/.*' -e '.*/CompilerIdCXX/.*' -e '.*/external/.*' --json -o run-unit.json
-
gcovr --add-tracefile run-unit.json --xml > coverage.xml
-
gcovr --add-tracefile run-unit.json
rules
:
-
when
:
on_success
artifacts
:
...
...
@@ -105,7 +104,6 @@ idg-integration-docker:
image
:
idg_integration:${CI_COMMIT_SHORT_SHA}
needs
:
[
"
build-integration"
]
before_script
:
-
pip3 install pytest pytest-lazy-fixture h5py
-
export HOME_DIR=$PWD
# Install IDG
-
mkdir /opt/idg && mkdir build
...
...
docker/ubuntu_20_04_base
View file @
09051f1d
...
...
@@ -3,4 +3,5 @@ FROM ubuntu:20.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
apt-get install -y \
libboost-all-dev g++ cmake libfftw3-dev liblapacke-dev \
python3 python3-pip
\ No newline at end of file
python3 python3-pip && \
pip3 install clang-format==9.0.0 gcovr
\ No newline at end of file
docker/ubuntu_20_04_integration
View file @
09051f1d
...
...
@@ -36,4 +36,4 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
&& tar xfz /WSRT_Measures.ztar \
&& rm /WSRT_Measures.ztar \
# Install some python packages
&& pip3 install astropy scipy
&& pip3 install astropy scipy
pytest pytest-lazy-fixture h5py
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