From 8dc876f7c4cdf39ca5b94fc67d453ff1b21ec7a2 Mon Sep 17 00:00:00 2001 From: Ryan Sinnet Date: Wed, 3 Feb 2021 06:46:59 -0800 Subject: [PATCH 1/2] Update CMake minimum version to 3.5 Update minimum version to avoid deprecation warning. --- CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29832416..63ba7097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.5) project(better_enums) find_package(catkin REQUIRED) catkin_package( diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 789ea137..c8c421db 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,6 +1,6 @@ # Invoked automatically by the Makefile. -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) project("Better Enums Testing" CXX) From 812ef63bd63a81a5d3f16b71b4e244c07227b562 Mon Sep 17 00:00:00 2001 From: Ryan Sinnet Date: Wed, 3 Feb 2021 06:48:21 -0800 Subject: [PATCH 2/2] Add cloudbuild.yaml Add gitlint with Google Cloud Build. --- cloudbuild.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..15033aca --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,41 @@ +# In this directory, run the following command to build this builder. +# $ gcloud builds submit . --config=cloudbuild.yaml + +steps: + - id: 'Inject GitHub credentials' + name: gcr.io/cloud-builders/gcloud + entrypoint: 'bash' + args: [ '-c', 'gcloud secrets versions access latest --secret=miso-deploy-ssh-key > /root/.ssh/id_github' ] + volumes: + - name: 'ssh' + path: /root/.ssh + + - id: 'Set up git repository' + name: gcr.io/cloud-builders/git + entrypoint: 'bash' + args: + - '-c' + - | + chmod 600 /root/.ssh/id_github + cat </root/.ssh/config + Hostname github.com + IdentityFile /root/.ssh/id_github + EOF + ssh-keyscan -t rsa github.com > /root/.ssh/known_hosts + git remote set-url origin git@github.com:MisoRobotics/$REPO_NAME.git + git fetch origin $_BASE_BRANCH:refs/remotes/origin/$_BASE_BRANCH + volumes: + - name: 'ssh' + path: /root/.ssh + + - id: 'Run gitlint' + name: gcr.io/software-builds/miso-cloud-builders/gitlint + args: + - '--commits' + - 'origin/$_BASE_BRANCH..$COMMIT_SHA' + - '-c' + - 'general.ignore-fixup-commits=false' + - '-c' + - 'general.ignore-squash-commits=false' + - '-c' + - 'title-must-not-contain-word.words=WIP,FIXUP,SQUASH'