Skip to content

Commit

Permalink
ci: update gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
abeimler committed Jun 4, 2022
1 parent 0d327c9 commit 131b530
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,28 @@ stages:
./setup_cpp_linux --compiler $compiler --cmake true --ninja true --ccache true --clangtidy true --clangformat true --cppcheck true
source ~/.profile

.test: &test |
git submodule update --init --recursive
# Build and Test
.configure: &configure |
git submodule update --remote --recursive
git submodule foreach git pull origin master
./vcpkg/bootstrap-vcpkg.sh
cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo

.build: &build |
cmake --build ./build --config RelWithDebInfo

.test: &test |
cd ./build
ctest --build-config Debug

test_linux_llvm:
stage: test
variables:
compiler: llvm
script:
- *setup_linux
- *setup_cpp
- *configure
- *build
- *test

test_linux_gcc:
Expand All @@ -47,4 +56,6 @@ test_linux_gcc:
script:
- *setup_linux
- *setup_cpp
- *configure
- *build
- *test
1 change: 1 addition & 0 deletions .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extraction:
- python3 -m pip install --upgrade pip setuptools
- python3 -m pip install conan
- python3 -m pip install cmake
- python3 -m pip install cogapp
- source ~/.profile
configure:
command:
Expand Down

0 comments on commit 131b530

Please sign in to comment.