Building cpputest in Gitlab CI

215 views
Skip to first unread message

Carlos Diaz

unread,
Nov 25, 2020, 6:48:17 PM11/25/20
to cpputest

Hi,

I'm getting started in unit testing and I've been running the unit tests in my local machine. I've "successfully" added a CI job in Gitlab and the test runs as expected, below my CI configuration file:

before_script:
    - apt -y install automake autoconf libtool git
run-unit-tests:
    script:
        - git clone --depth 1 --branch v4.0 https://github.com/cpputest/cpputest.git
        - cd cpputest
        - autoreconf . -i
        - ./configure
        - make tdd
        - export CPPUTEST_HOME=$(pwd)
        - cd ..
        - git clone --depth 1 --branch master https://github.com/C47D/NRF24.git
        - cd NRF24 - make

Each time the script runs it builds cpputest (because I'm currently using MakefileWorker.mk), then it clones my repo and runs the unit tests.

Does anybody knows if there's a way to "cache" the cpputest v4.0 build so I don't have to build it everytime?

Or installing cpputest and not being able to use the MakefileWorker is my only hope to avoid building it every time the script runs?

Regards
Carlos

Bas Vodde

unread,
Nov 27, 2020, 10:13:02 AM11/27/20
to cppu...@googlegroups.com

Hi Carlos,

Uhm, you can install CppuTest with apt-get also.

If you want to use the MakefileWorker.mk

It seems the MakefileWorker isn’t installed with apt-get, so you can either copy that or take that from the git repository.

Hope that helps!

Thanks,

Bas

--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/2a29ec8f-b8d7-4f32-a19c-0bd91c2ff0a7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages