Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fpm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
fpm
Commits
55b433d7
Commit
55b433d7
authored
4 years ago
by
Adrien Crovato
Browse files
Options
Downloads
Patches
Plain Diff
Update ci
parent
aea2a2e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Version 0.1.0 (setup)
Pipeline
#2141
failed
4 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-8
10 additions, 8 deletions
.gitlab-ci.yml
with
10 additions
and
8 deletions
.gitlab-ci.yml
+
10
−
8
View file @
55b433d7
...
...
@@ -14,15 +14,16 @@ variables:
GIT_CLONE_PATH
:
/builds/$CI_PROJECT_PATH/FPM_BUILD/fpm
# cannot work in /builds/$CI_PROJECT_PATH
stages
:
-
build
# only 1 stage to avoid exporting artifacts in parent dir (not permitted)
-
bld_tst
-
fmt_dox
build_test
:
<<
:
*global_tag_def
stage
:
b
ui
ld
stage
:
bld
_tst
script
:
-
printenv | sort
-
cd ..
# get
waves
and build
# get and build
waves
-
rm -rf waves
-
wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2
-
tar xf waves-master.tar.bz2
...
...
@@ -33,13 +34,14 @@ build_test:
-
cd build
-
cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
-
make -j $(nproc)
# build fpm
# build
and test
fpm
-
cd ../../fpm
-
mkdir build
-
cd build
-
cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
-
make -j $(nproc)
-
ctest -j $(nproc) --output-on-failure
#--verbose
-
mv ${CI_PROJECT_DIR}/../waves/scripts/format_code.py .
# ulgy way to keep a script we need later...
#timeout: 10 hours # will be available in 12.3
artifacts
:
paths
:
...
...
@@ -48,11 +50,11 @@ build_test:
format
:
<<
:
*global_tag_def
stage
:
build
stage
:
fmt_dox
script
:
-
ls ${CI_PROJECT_DIR}/..
-
clang-format --version
# we use clang-format-10 exclusively
-
${CI_PROJECT_DIR}/../waves/scripts/format_code.py
-
ls build
-
./build/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
:
...
...
@@ -67,7 +69,7 @@ format:
doxygen
:
<<
:
*global_tag_def
stage
:
build
stage
:
fmt_dox
script
:
-
cd build
-
make dox
...
...
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