Skip to content
Snippets Groups Projects
Commit 08628039 authored by jfdenton's avatar jfdenton
Browse files

setting up pipeline and README

parent 5aaebaa0
No related branches found
No related tags found
No related merge requests found
Pipeline #3139 failed
image: gcc
build:
stage: build
before-script:
- sudo apt-get install libgtest-dev
- sudo apt-get install cmake
- cd /usr/src/googletest/googletest
- sudo mkdir build
- cd build
- sudo cmake ..
- sudo make
- sudo cp libgtest* /usr/lib/
- cd ..
- sudo rm -rf build
- sudo mkdir /usr/local/lib/googletest
- sudo ln -s /usr/lib/libgtest.a /usr/local/lib/googletest/libgtest.a
- sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/googletest/libgtest_main.a
script:
- mkdir build
- cd build
- cmake ..
- make
test:
stage: test
script:
- ./tests
\ No newline at end of file
# PIPELINE - TEST
project dedicated to learning cmake and gitlab pipelines
making use of the gtest lib for unittests
\ No newline at end of file
......@@ -10,7 +10,7 @@ TEST(AddTest, NormalCases) {
TEST(AddTest, EdgeCases) {
ASSERT_EQ(-2, add(0, -2));
ASSERT_EQ(1, add(-2, 2));
ASSERT_EQ(0, add(-2, 2));
}
int main(int argc, char** argv) {
......
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