Add debug config

pull/32/head
Geoffrey Merck 4 years ago
parent 54deb908fa
commit dd1fc8f14c

@ -5,6 +5,29 @@ version: 2.1
# Define a job to be invoked later in a workflow. # Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs # See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs: jobs:
build-dstargateway-debug:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
- image: cimg/base:stable
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: Install dependencies
command: |
sudo apt-get update
sudo apt-get -y install libgtest-dev libcurl4-openssl-dev libboost-dev
- run:
name: "Build App"
command: "make ENABLE_DEBUG=1 -j 3 dstargateway"
- run:
name: "Build Tests"
command: "make ENABLE_DEBUG=1 -j 3 tests"
- run:
name: "Run Tests"
command: "make ENABLE_DEBUG=1 run-tests"
build-dstargateway: build-dstargateway:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
@ -33,4 +56,5 @@ jobs:
workflows: workflows:
dstar-gateway-workflow: dstar-gateway-workflow:
jobs: jobs:
- build-dstargateway-debug
- build-dstargateway - build-dstargateway

@ -21,10 +21,14 @@ export CFG_DIR=/usr/local/etc/
export DATA_DIR=/usr/local/share/dstargateway.d/ export DATA_DIR=/usr/local/share/dstargateway.d/
export LOG_DIR=/var/log/dstargateway/ export LOG_DIR=/var/log/dstargateway/
ifeq ($(ENABLE_DEBUG), 1)
# choose this if you want debugging help # choose this if you want debugging help
export CPPFLAGS=-g -ggdb -W -Wall -Werror -std=c++17 export CPPFLAGS=-g -ggdb -W -Wall -Werror -std=c++17
else
# or, you can choose this for a much smaller executable without debugging help # or, you can choose this for a much smaller executable without debugging help
#CPPFLAGS=-W -Wall -Werror -std=c++17 CPPFLAGS=-W -O3 -Wall -Werror -std=c++17
endif
export CC=g++ export CC=g++
export LDFLAGS:=-lcurl -pthread export LDFLAGS:=-lcurl -pthread

Loading…
Cancel
Save

Powered by TurnKey Linux.