Skip to content

Commit

Permalink
Merge pull request #6 from MisoRobotics/user/rsinnet/feature/update-c…
Browse files Browse the repository at this point in the history
…make

Update CMake minimum version to 3.5
  • Loading branch information
rsinnet authored Feb 3, 2021
2 parents 81f2780 + 812ef63 commit 0690a62
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
41 changes: 41 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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 <<EOF >/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 [email protected]: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'
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 0690a62

Please sign in to comment.