Gitlab CI - Debugging
[tpg/opendispense2.git] / .gitlab-ci.yml
1 # This file is a template, and might need editing before it works on your project.
2 # use the official gcc image, based on debian
3 # can use verions as well, like gcc:5.2
4 # see https://hub.docker.com/_/gcc/
5 image: gcc
6
7 build:
8   stage: build
9   # instead of calling g++ directly you can also use some build toolkit like make
10   # install the necessary build tools when needed
11   before_script:
12     - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident-dev
13   script:
14     - make -C src/
15   artifacts:
16     paths:
17       - dispense
18       - cokebank_sqlite.so
19       - dispsrv
20       # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
21       # cache:
22       #   paths:
23       #     - "*.o"
24
25 # run tests using the binary built before
26 test:
27   stage: test
28   before_script:
29     # Install the -dev versions to avoid needing to find the actual library names
30     - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat
31   script:
32     - cd tests && ./TEST_basic.sh

UCC git Repository :: git.ucc.asn.au