File tree 3 files changed +10
-8
lines changed 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
## How to run tests
11
11
12
+ Since most of the tests are actually integration tests you will need to have a
13
+ working docker setup to make the full test suite pass.
14
+
12
15
1 . build vendorized gtest: ` ./utils/build_gtest.sh `
13
16
2 . build restclient-cpp: ` ./autogen.sh && ./configure && make check `
14
- 3 . run the proxy server used in testing: ` docker run -d -p 3128:3128 chrisdaish/squid `
15
- 4 . run the unit test suite: ` make test `
17
+ 3 . run the unit test suite: ` make ci `
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ script:
13
13
- ./autogen.sh && ./configure --enable-coverage
14
14
- make ci
15
15
16
- before_install :
17
- - docker pull chrisdaish/squid
18
- - docker run -d -p 3128:3128 chrisdaish/squid
19
- - docker ps -a
20
16
install :
21
17
- gem install fpm
22
18
- gem install package_cloud
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ librestclient_cpp_la_LDFLAGS=-version-info 2:1:1
16
16
17
17
dist_doc_DATA = README.md
18
18
19
- .PHONY : test check clean-coverage-files coverage-html include/restclient-cpp/version.h lint ci
19
+ .PHONY : test check clean-coverage-files coverage-html include/restclient-cpp/version.h lint ci docker-services
20
20
21
21
include/restclient-cpp/version.h :
22
22
m4 -I m4 -DM4_RESTCLIENT_VERSION=$(VERSION ) version.h.m4 > $@
@@ -30,7 +30,11 @@ valgrind: check
30
30
lint :
31
31
cpplint --filter=-legal/copyright include/restclient-cpp/* .h source/* .cc
32
32
33
- ci : lint test valgrind
33
+ docker-services :
34
+ docker inspect --format=" {{ .State.Running }}" restclient-proxy & > /dev/null || docker run -d --name restclient-proxy -p 3128:3128 chrisdaish/squid
35
+ docker ps -a
36
+
37
+ ci : lint docker-services test valgrind
34
38
35
39
clean-local :
36
40
find . -name " *.gcda" -print0 | xargs -0 rm
You can’t perform that action at this time.
0 commit comments