Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
waves
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
waves
Commits
8f8111c9
Commit
8f8111c9
authored
4 years ago
by
Boman Romain
Browse files
Options
Downloads
Patches
Plain Diff
clean output / avoid segi runners
parent
bcc629ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!58
Improve Continuous Integration
Pipeline
#1577
passed with warnings
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+69
-70
69 additions, 70 deletions
.gitlab-ci.yml
scripts/format_code.py
+2
-2
2 additions, 2 deletions
scripts/format_code.py
with
71 additions
and
72 deletions
.gitlab-ci.yml
+
69
−
70
View file @
8f8111c9
...
...
@@ -10,18 +10,18 @@ default:
.global_tag
:
&global_tag_def
tags
:
-
mn2l
# - warson # you can choose a set of runners here
stages
:
-
format
-
build
-
test
format
:
<<
:
*global_tag_def
stage
:
format
stage
:
build
script
:
-
python3
./scripts/format_code.py
-
./scripts/format_code.py
-
mkdir -p patches
-
if git diff --patch --exit-code > patches/clang-format.patch; then echo "Clang format changed nothing"; else echo "Clang format found changes to make!";
false
; fi
artifacts
:
...
...
@@ -31,75 +31,74 @@ format:
when
:
on_failure
allow_failure
:
true
build-no-tlnos
:
<<
:
*global_tag_def
stage
:
build
script
:
-
rm -rf build workspace
-
mkdir build
-
cd build
-
cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
-
make -j
8
# build-no-tlnos:
# <<: *global_tag_def
# stage: build
# script:
# - rm -rf build workspace
# - mkdir build
# - cd build
# - cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
# - make -j 8
# build:
# <<: *global_tag_def
# stage: build
# script:
# - rm -rf build workspace
# - mkdir build
# - cd build
# - cmake -Wno-dev ..
# - make -j 8
# artifacts:
# paths:
# - build/
# expire_in: 1 day
build
:
<<
:
*global_tag_def
stage
:
build
script
:
-
rm -rf build workspace
-
mkdir build
-
cd build
-
cmake -Wno-dev ..
-
make -j
8
artifacts
:
paths
:
-
build/
expire_in
:
1 day
#
build-red:
#
<<: *global_tag_def
#
image: rboman/waves-py3-red:2020.3
#
stage: build
#
script:
#
- rm -rf build workspace
#
- mkdir build
#
- cd build
#
- cmake -Wno-dev ..
#
- make -j 8
#
artifacts:
#
paths:
#
- build/
#
expire_in: 1 day
build-red
:
<<
:
*global_tag_def
image
:
rboman/waves-py3-red:2020.3
stage
:
build
script
:
-
rm -rf build workspace
-
mkdir build
-
cd build
-
cmake -Wno-dev ..
-
make -j
8
artifacts
:
paths
:
-
build/
expire_in
:
1 day
#
doxygen:
#
<<: *global_tag_def
#
stage: test
#
script:
#
- cd build
#
- make dox
#
artifacts:
#
paths:
#
- build/doxygen/
#
expire_in: 1 week
#
dependencies:
#
- build
doxygen
:
<<
:
*global_tag_def
stage
:
test
script
:
-
cd build
-
make dox
artifacts
:
paths
:
-
build/doxygen/
expire_in
:
1 week
dependencies
:
-
build
#
ctest:
#
<<: *global_tag_def
#
stage: test
#
script:
#
- cd build
#
- ctest --output-on-failure -j 8
#
#timeout: 10 hours # will be available in 12.3
#
dependencies:
#
- build
ctest
:
<<
:
*global_tag_def
stage
:
test
script
:
-
cd build
-
ctest --output-on-failure -j
8
#timeout: 10 hours # will be available in 12.3
dependencies
:
-
build
#
ctest-red:
#
<<: *global_tag_def
#
image: rboman/waves-py3-red:2020.3
#
stage: test
#
script:
#
- cd build
#
- ctest --output-on-failure -j 8 -R katropton
#
dependencies:
#
- build-red
ctest-red
:
<<
:
*global_tag_def
image
:
rboman/waves-py3-red:2020.3
stage
:
test
script
:
-
cd build
-
ctest --output-on-failure -j 8 -R katropton
dependencies
:
-
build-red
This diff is collapsed.
Click to expand it.
scripts/format_code.py
+
2
−
2
View file @
8f8111c9
...
...
@@ -42,7 +42,7 @@ def main():
# loop over all files and format them
encs
=
{}
for
f
in
all_files
(
os
.
getcwd
(),
patterns
=
'
*.cpp;*.c;*.h;*.hpp
'
):
print
(
f
)
#
print(f)
cmd
=
[
'
clang-format
'
,
"
-style=file
"
,
"
-i
"
,
f
]
retcode
=
subprocess
.
call
(
cmd
)
if
retcode
!=
0
:
...
...
@@ -51,5 +51,5 @@ def main():
if
__name__
==
"
__main__
"
:
print
(
'
running format_code.py...
'
)
#
print('running format_code.py...')
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment