From 2cda63151a27fae8c79e0f5bd67f1d2f62808498 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 8 Mar 2020 18:06:44 +0000 Subject: [PATCH] Switch from Jenkins to Drone --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ .editorconfig | 2 +- .gitignore | 1 + README.md | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..34f0403 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: registry.openrs2.dev/openrs2-dev + commands: + - mvn clean verify + + - name: deploy + image: registry.openrs2.dev/openrs2-dev + commands: + - | + cat < $${HOME}/.m2/settings.xml + + + + openrs2 + + + + + openrs2-snapshots + + + + + + EOF + - mvn deploy + environment: + REPO_USERNAME: + from_secret: repo_username + REPO_PASSWORD: + from_secret: repo_password + when: + branch: + - master diff --git a/.editorconfig b/.editorconfig index b1fd7c5..c25cff8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,6 @@ trim_trailing_whitespace = true max_line_length = 120 indent_style = tab -[*.{nix,xml}] +[*.{nix,xml,yaml,yml}] indent_style = space indent_size = 2 diff --git a/.gitignore b/.gitignore index 7462d7a..d5359bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .* +!.drone.yml !.editorconfig !.git* !.mailmap diff --git a/README.md b/README.md index 0ae32a2..55f93b9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OpenRS2 Natives -[![Build status badge](https://build.openrs2.dev/buildStatus/icon?job=openrs2-natives&build=lastCompleted)](https://build.openrs2.dev/job/openrs2-natives/) +[![Build status badge](https://build.openrs2.dev/api/badges/openrs2/openrs2-natives/status.svg)](https://build.openrs2.dev/openrs2/openrs2-natives/) ## Introduction