mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-03 06:57:36 +01:00
Cleanup (#1789)
* Delete Jenkinsfile * Delete .travis.yml * Delete sonar.sh * Delete updateJavadocs.sh * Delete runTests.sh * Delete runCheckstyle.sh * Delete prepareServerJars.sh * Delete eula.txt * Delete release-drafter.yml
This commit is contained in:
parent
55f3e3526e
commit
3daf54edc8
16
.github/release-drafter.yml
vendored
16
.github/release-drafter.yml
vendored
@ -1,16 +0,0 @@
|
||||
categories:
|
||||
- title: 'New'
|
||||
label: 'Feature'
|
||||
- title: 'Improvements'
|
||||
label: 'enhancement'
|
||||
- title: 'Bugfixes'
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'bugfix'
|
||||
- 'bug'
|
||||
- title: 'Dependencies'
|
||||
label: 'dependencies'
|
||||
template: |
|
||||
# _ Change log
|
||||
|
||||
$CHANGES
|
38
.travis.yml
38
.travis.yml
@ -1,38 +0,0 @@
|
||||
language: java
|
||||
sudo: true
|
||||
install: false
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
sonarcloud:
|
||||
organization: "player-analytics-plan"
|
||||
token:
|
||||
secure: "bTqGEUlfpVGgXgwC9UiIwYN+LsUtXFHTbWkAjnNJcCKTLDvHzUfDzY8/M7YIpIlcS7EWggNgJhskkg/WBglESx/0KcVl4NukMgbylqvp7y1F7eOkYLuriWBpuwMaSCHTWjmyq1iWNJ26i569PETbKiS+sNYnx9lPIpXI4ph0M9EKK3nQpTLr1aeVHi+XilJu6UNY7whipoW1fEwn02s2SvIXUMJN1fS0tmUjMavlOnlxt0lCU/oayMVG7vFKE2wWDJ5Ucd6lLGLPA1at4ypy6nJVcl8Bn547qoXBoIyMbtAhpcLUzkkFLK8BxuSsQ5neK71GLlmbiU+bIU5dpfRgsS3XLOXSSgide0ly/Za4zQVUBfu36F5xJOFGGdALGfMBhWdCzW1j0oDcINauUhjK/VB9v8M8qpxBCV6Q570FH2CQdNotfUWvHHGVZf1+yqXnC5iUcIh4cuxNCrOgp3uql8cpLGtMfqScV4l7GkcYGXLZlLUhGPK5K8UhwPym31CJU8If6ExMiKttxvpCtcGsXx2bRl7gRl3+xdjlY0PzIfbBbgYY6uu5v6cK8RHxp/+sLsBDfPtVvRZnnOVACLUFzTRSr6nP0Cm8rr+91S3rTmf4Qug+IN32xMDVcs6Sm68v/KTn2QoA2XyXOMLbIR39/0ani00xCd3FPF9Ae115YHg="
|
||||
jdk:
|
||||
- openjdk8
|
||||
services:
|
||||
- mysql
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: "Tests"
|
||||
name: "Checkstyle"
|
||||
script: bash scripts/runCheckstyle.sh
|
||||
- stage: "Tests"
|
||||
name: "Unit tests"
|
||||
before_script: bash scripts/prepareTestEnv.sh
|
||||
script: bash scripts/runTests.sh
|
||||
after_success: bash scripts/sonar.sh
|
||||
- stage: "System Tests"
|
||||
name: "Test environment setup"
|
||||
script: bash scripts/prepareServerJars.sh
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
cache:
|
||||
directories:
|
||||
- '$HOME/.m2/repository'
|
||||
- '$HOME/.sonar/cache'
|
||||
- '$HOME/.gradle/caches/'
|
||||
- '$HOME/.gradle/wrapper/'
|
||||
- '$HOME/servers/'
|
65
Jenkinsfile
vendored
65
Jenkinsfile
vendored
@ -1,65 +0,0 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
dir("Plan") {
|
||||
script {
|
||||
sh 'rm -rf builds'
|
||||
sh 'sed -i -e s/%buildNumber%/\$BUILD_NUMBER/g build.gradle'
|
||||
sh 'sed -i -e s/%buildNumber%/\$BUILD_NUMBER/g common/src/main/resources/plugin.yml'
|
||||
sh 'sed -i -e s/%buildNumber%/\$BUILD_NUMBER/g common/src/main/resources/bungee.yml'
|
||||
sh 'sed -i -e s/%buildNumber%/\$BUILD_NUMBER/g sponge/src/main/java/com/djrapitops/plan/PlanSponge.java'
|
||||
sh 'sed -i -e s/%buildNumber%/\$BUILD_NUMBER/g velocity/src/main/java/com/djrapitops/plan/PlanVelocity.java'
|
||||
sh './gradlew clean shadowJar --parallel'
|
||||
}
|
||||
}
|
||||
archiveArtifacts artifacts: 'Plan/builds/*.jar', fingerprint: false
|
||||
}
|
||||
}
|
||||
stage('Tests') {
|
||||
steps {
|
||||
dir("Plan") {
|
||||
script {
|
||||
try {
|
||||
sh './gradlew test --parallel'
|
||||
} finally {
|
||||
junit '**/build/test-results/test/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Checkstyle') {
|
||||
steps {
|
||||
dir("Plan") {
|
||||
script {
|
||||
sh './gradlew checkstyleMain checkstyleTest --parallel'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('SonarQube analysis') {
|
||||
steps {
|
||||
dir("Plan") {
|
||||
script {
|
||||
withSonarQubeEnv() {
|
||||
sh './gradlew sonarqube -Dsonar.organization=player-analytics-plan'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
dir("Plan") {
|
||||
script {
|
||||
sh './gradlew clean --parallel'
|
||||
sh 'rm -rf builds'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
||||
#Sun Nov 27 12:07:48 EET 2016
|
||||
eula=true
|
@ -1,40 +0,0 @@
|
||||
mkdir $HOME/servers
|
||||
mkdir $HOME/servers/build
|
||||
|
||||
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
git config --global --unset core.autocrlf
|
||||
|
||||
cd $HOME/servers
|
||||
if [ ! -e spigot.jar ]; then
|
||||
cd $HOME/servers/build
|
||||
echo "Building spigot 1.12.2"
|
||||
java -jar BuildTools.jar --rev 1.12.2
|
||||
cp spigot-1.12.2.jar ../spigot.jar
|
||||
else
|
||||
echo "Found spigot 1.12.2 jar"
|
||||
fi
|
||||
|
||||
cd $HOME/servers
|
||||
if [ ! -e craftbukkit.jar ]; then
|
||||
cd $HOME/servers/build
|
||||
echo "Building craftbukkit 1.8"
|
||||
java -jar BuildTools.jar --rev 1.8
|
||||
cp craftbukkit-1.8.jar ../craftbukkit.jar
|
||||
else
|
||||
echo "Found craftbukkit 1.8 jar"
|
||||
fi
|
||||
|
||||
cd $HOME/servers
|
||||
if [ ! -e sponge.jar ]; then
|
||||
cd $HOME/servers/build
|
||||
echo "Downloading sponge"
|
||||
wget -O sponge.jar https://repo.spongepowered.org/maven/org/spongepowered/spongevanilla/1.12.2-7.1.4/spongevanilla-1.12.2-7.1.4.jar
|
||||
cp sponge.jar ../sponge.jar
|
||||
else
|
||||
echo "Found sponge jar"
|
||||
fi
|
||||
|
||||
|
||||
cd $HOME/servers
|
||||
rm -rf build
|
||||
cd $HOME
|
@ -1,5 +0,0 @@
|
||||
set -e
|
||||
cd $TRAVIS_BUILD_DIR/Plan
|
||||
./gradlew checkstyleMain
|
||||
./gradlew checkstyleTest
|
||||
cd $HOME
|
@ -1,4 +0,0 @@
|
||||
set -e
|
||||
cd $TRAVIS_BUILD_DIR/Plan
|
||||
./gradlew test --info
|
||||
cd $HOME
|
@ -1,6 +0,0 @@
|
||||
set -e
|
||||
cd $TRAVIS_BUILD_DIR/Plan
|
||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
./gradlew sonarqube
|
||||
fi
|
||||
cd $HOME
|
@ -1,43 +0,0 @@
|
||||
echo "User permissions"
|
||||
ls -l
|
||||
|
||||
echo "Moving to working directory:"
|
||||
cd ../Plan
|
||||
pwd
|
||||
echo "Building javadocs with gradle"
|
||||
./gradlew aggregateJavadocs
|
||||
|
||||
echo "Moving to working directory:"
|
||||
cd ../
|
||||
pwd
|
||||
|
||||
echo "Copying files to temporary folder.."
|
||||
mkdir temp
|
||||
mkdir temp/all
|
||||
mkdir temp/api
|
||||
cp -r Plan/build/docs/javadoc/* temp/all/
|
||||
cp -r Plan/api/build/docs/javadoc/* temp/api/
|
||||
|
||||
echo "Changing to gh-pages branch"
|
||||
git checkout gh-pages
|
||||
|
||||
echo "Removing old javadocs"
|
||||
rm -rf all
|
||||
rm -rf api
|
||||
|
||||
echo "Copying files to /all and /api"
|
||||
mkdir all
|
||||
mkdir api
|
||||
cp -r temp/all/* ./all
|
||||
cp -r temp/api/* ./api
|
||||
echo "Cleaning up.."
|
||||
rm -rf temp
|
||||
|
||||
git add .
|
||||
git commit -m "Updated javadocs"
|
||||
git push
|
||||
|
||||
echo "Changing back to previous branch"
|
||||
git checkout -
|
||||
|
||||
echo "Complete."
|
Loading…
Reference in New Issue
Block a user