Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial continuous integration setup #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-case-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- --fix=lf
- id: trailing-whitespace
- id: pretty-format-json
args:
- --autofix
- --indent=2
- --no-sort-keys
- id: check-merge-conflict
- id: check-yaml
exclude: codebuild-ci.yaml
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ License
-------

This library is licensed under the Apache 2.0 License.


15 changes: 15 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 0.2
phases:
install:
runtime-versions:
java: openjdk8
python: 3.7
commands:
- pip install pre-commit cloudformation-cli-java-plugin
build:
commands:
- pre-commit run --all-files
# - cd "$CODEBUILD_SRC_DIR/my_resource"
# - mvn clean verify --no-transfer-progress
# finally:
# - cat "$CODEBUILD_SRC_DIR/my_resource/rpdk.log"