This buildpack preprocesses .ino
files into .cpp
.
It inherits base buildpack.
This behavior can be disabled adding #pragma SPARK_NO_PREPROCESSOR
to Arduino file.
Before building this image, build or fetch buildpack-base.
$ docker-compose build
This buildpack requires two volumes to be mounted: /input
and /output
. To preprocess code simply run the container:
$ docker run --rm \
-v ~/tmp/input:/input \
-v ~/tmp/output:/output \
particle/buildpack-wiring-preprocessor
Where ~/tmp/input
is location of Wiring code and ~/tmp/output
is where preprocessed code will be stored.
$ docker build -t particle/buildpack-wiring-preprocessor .
$ docker run --rm particle/buildpack-wiring-preprocessor /bin/run-tests
See .travis.yml
for the most up to date instructions.