Files
cpp-project-template/third_party/prometheus/3rdparty/civetweb/ci/test/README.md
tqcq c68893bace
Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 29s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 16s
sm-rpc / build (Debug, host.gcc) (push) Failing after 11s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 12s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 11s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 11s
sm-rpc / build (Release, host.gcc) (push) Failing after 12s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 16s
feat add spdlog
2025-08-22 18:22:57 +08:00

1.3 KiB

== Travis CI Tests

Travis is a service which will build your project when you commit or get pull requests on Github.

I have fixed and extended the travis configuration to build on the new sudo-less docker infrastructure.

=== CI Process

  • On Check-in or Pull Requests clone the repo
  • Run make WITH_LUA=1 WITH_DEBUG=1 WITH_IPV6=1 WITH_WEBSOCKET=1
  • Build a standalone lua installation (separate from civetweb or the OS)
  • Build LuaRocks in standalone installation
  • Install a few rocks into the standalone installation
  • Start the test script

=== test/ci_tests/01_basic/basic_spec.lua

On the initial checkin, there is only one test which demonstrates:

  • reliably starting civetweb server on travis infrastructure
  • waiting (polling) with lua.socket to establish the server is up and running
  • using libcurl via lua to test that files in the specified docroot are available
  • kill the civetweb server process
  • waiting (polling) the server port to see that the server has freed it

=== Adding Tests