From 857c5c2b19d751f569ab8b607a33890747eb7b3a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 25 Mar 2020 08:22:10 -0500 Subject: [PATCH] Initial commit --- Containerfile | 7 +++++++ Jenkinsfile | 17 +++++++++++++++++ build.sh | 1 + 3 files changed, 25 insertions(+) create mode 100644 Containerfile create mode 100644 Jenkinsfile create mode 100644 build.sh diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..12c6970 --- /dev/null +++ b/Containerfile @@ -0,0 +1,7 @@ +FROM arm32v7/python:3.7-slim + +RUN apt-get update && apt-get install -y \ + gcc \ + libffi-dev \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bcf429e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,17 @@ +def containerName + +node('arm') { + stage('Checkout SCM') { + checkout scm + } + stage('Agent Setup') { + containerName = sh( + script: 'sha1sum Containerfile', + returnStdout: true + ).split()[0] + sh "podman build -t ${containerName} -f Containerfile" + } + stage('Build Wheels') { + sh "podman run -w ${WORKSPACE} -v ${WORKSPACE}:${WORKSPACE} ${containerName} sh build.sh" + } +} diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..718238f --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +python3.7 -m pip wheel -w dist/ homeassistant