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/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' 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)