Skip to content
Snippets Groups Projects
Commit 5ba8e10e authored by Adrien Crovato's avatar Adrien Crovato
Browse files

Update gitlab CI

parent 2e935fd7
No related branches found
No related tags found
1 merge request!1Version 0.1.0 (setup)
Pipeline #2021 failed
......@@ -14,24 +14,45 @@ stages:
- build
- test
build:
waves:
<<: *global_tag_def
stage: build
stage: .pre
script:
- pwd
- printenv | sort
- cd ..
- rm -rf waves
- wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/feature_fpm/waves-feature_fpm.tar.bz2
- tar xf waves-feature_fpm.tar.bz2
- rm waves-feature_fpm.tar.bz2
- mv waves-feature_fpm waves
- wget -q https://gitlab.uliege.be/am-dept/waves/-/archive/master/waves-master.tar.bz2
- tar xf waves-master.tar.bz2
- rm waves-master.tar.bz2
- mv waves-master waves
- cd waves
- mkdir build
- cd build
- cmake -Wno-dev -C ../CMake/disable-trilinos.cmake ..
- make -j $(nproc)
- cd ../../fpm
- rm -rf build workspace
format:
<<: *global_tag_def
stage: build
script:
- clang-format --version # we use clang-format-10 exclusively
- pwd
- ./${CI_PROJECT_DIR}/../waves/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:
paths:
- patches/
expire_in: 1 day
when: on_failure
allow_failure: true
build:
<<: *global_tag_def
stage: build
script:
- pwd
- mkdir build
- cd build
- cmake -DCMAKE_PREFIX_PATH=${CI_PROJECT_DIR}/../waves -Wno-dev ..
......
......@@ -95,7 +95,8 @@ void Solver::run()
std::cout << "Computing flow and loads on bodies... " << std::flush;
computeFlow(mu, tau, sigma);
computeLoad();
std::cout << "done!" << std::endl << std::endl;
std::cout << "done!" << std::endl
<< std::endl;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment