Skip to content
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
40 changes: 11 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
language: java
after_success:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
before_install:
- echo $TRAVIS_BUILD_NUMBER > $TRAVIS_BUILD_DIR/src/main/resources/build.txt
before_deploy:
- git config --local user.name "HyperiumDeploy"
- git config --local user.email "[email protected]"
- git tag -a $TRAVIS_BUILD_NUMBER -m "Automated beta build"
- "git push https://[email protected]/HyperiumClient/Hyperium.git HEAD:master --follow-tags"
after_deploy:
- wget https://gist.github.com/Cubxity/457736a7bcbfe6d6f3ae2a5db04c0806/raw/deploy-hook.sh
- chmod +x deploy-hook.sh
- ./deploy-hook.sh $CUBE_MAN
deploy:
provider: releases
api_key: $GIT_TOKEN
skip_cleanup: true
file_glob: true
file: $TRAVIS_BUILD_DIR/build/libs/*
on:
repo: HyperiumClient/Hyperium
prerelease: true
if: tag IS blank
jdk:
- oraclejdk8
- openjdk8
rvm: 2.0.0
before_install: "chmod +x gradlew"
install:
- "./gradlew setupCIWorkspace -S"
- "bundle install"
script:
- "./gradlew build -S"
- "bundle exec danger"
21 changes: 21 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
detekt_task = "detekt"
test_task = "test"

# Sometimes it's a README fix, or something like that - which isn't relevant for
# including in a project's CHANGELOG for example
declared_trivial = github.pr_title.include? "#trivial"

# Warn when there is a big PR
warn("Big PR") if git.lines_of_code > 500

danger.import_plugin("https://raw.githubusercontent.com/NFesquet/danger-kotlin_detekt/master/lib/kotlin_detekt/plugin.rb")
danger.import_plugin("https://raw.githubusercontent.com/orta/danger-junit/master/lib/junit/plugin.rb")

kotlin_detekt.gradle_task = detekt_task
kotlin_detekt.report_file = "build/reports/detekt/detekt.xml"
kotlin_detekt.detekt

system "./gradlew #{test_task}"

junit.parse_files(Dir["./build/test-results/test/*.xml"])
junit.report
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem 'danger'
gem 'oga'
gem 'ox'
64 changes: 64 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ansi (1.5.0)
ast (2.4.0)
claide (1.0.2)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
colored2 (3.1.2)
cork (0.3.0)
colored2 (~> 3.1)
danger (5.9.1)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
cork (~> 0.1)
faraday (~> 0.9)
faraday-http-cache (~> 1.0)
git (~> 1.5)
kramdown (~> 1.5)
no_proxy_fix
octokit (~> 4.7)
terminal-table (~> 1)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
git (1.5.0)
kramdown (1.17.0)
multipart-post (2.0.0)
nap (1.1.0)
no_proxy_fix (0.1.2)
octokit (4.13.0)
sawyer (~> 0.8.0, >= 0.5.3)
oga (2.15)
ast
ruby-ll (~> 2.1)
open4 (1.3.4)
ox (2.10.0)
public_suffix (3.0.3)
ruby-ll (2.1.2)
ansi
ast
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.4.0)

PLATFORMS
x64-mingw32

DEPENDENCIES
danger
oga
ox

BUNDLED WITH
1.16.1