Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

tjun/googletest-circleci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

googletest-circleci

Circle CI

This repo shows how to test C++ code with googletest on Circle CI.

google/googletest: Google Test

Test C++ code on Circle CI

see circle.yml. you can see how to run gtest on circle ci.

Manual test with google-test

get gtest from repo.

git submodule init
git submodule update

Build gtest

OSX(yosemite)

CXX=/usr/bin/clang++ CC=/usr/bin/clang ./configure 'CXXFLAGS=-std=c++11 -stdlib=libc++'
CXX=/usr/bin/clang++ CC=/usr/bin/clang make

Ubuntu14.04

sudo apt-get install cmake
mkdir build
cd build
cmake ..
make

Build test

cd make
make
make test

run test

cd bin
./gtest_myint

About

sample C++ code of googletest on Circle CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published