Import of the watch repository from Pebble

This commit is contained in:
Matthieu Jeanson 2024-12-12 16:43:03 -08:00 committed by Katharine Berry
commit 3b92768480
10334 changed files with 2564465 additions and 0 deletions

View file

@ -0,0 +1,17 @@
Docker files
------------
This folder contains docker files that are used in testing nanopb automatically
on various platforms.
By default they take the newest master branch code from github.
To build tests for a single target, use for example:
docker build ubuntu1804
To build tests for all targets, use:
./build_all.sh

View file

@ -0,0 +1,8 @@
#!/bin/bash -e
# Run all targets
for file in `ls */Dockerfile`
do echo -e "\n\n\n---------------------------------------- Building image for" $file " -------------------------------------------\n\n\n"
docker build $(dirname $file)
done

View file

@ -0,0 +1,15 @@
FROM ubuntu:bionic
RUN apt -y update
RUN apt -y upgrade
RUN apt -y dist-upgrade
RUN apt -y autoremove
RUN apt -y install --fix-missing
RUN apt -y install apt-utils
RUN apt -y install git scons build-essential g++
RUN apt -y install protobuf-compiler python3-protobuf python3
RUN git clone https://github.com/nanopb/nanopb.git
RUN cd nanopb/tests && scons

View file

@ -0,0 +1,16 @@
FROM ubuntu:focal
RUN apt -y update
RUN apt -y upgrade
RUN apt -y dist-upgrade
RUN apt -y autoremove
RUN apt -y install --fix-missing
RUN apt -y install apt-utils
RUN apt -y install git scons build-essential g++
RUN apt -y install protobuf-compiler python3.8 python3-protobuf
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && update-alternatives --set python /usr/bin/python3.8
RUN git clone https://github.com/nanopb/nanopb.git
RUN cd nanopb/tests && scons