-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multiple IDE versions and EAP testing. Fixes #1.
- Loading branch information
1 parent
15b718d
commit 22e0e36
Showing
7 changed files
with
262 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 80 | ||
|
||
[{*.json, *.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.java] | ||
indent_style = tab | ||
tab_width = 4 | ||
|
||
[*.xml] | ||
indent_size = 2 | ||
|
||
[plugin.xml] | ||
max_line_length = off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Gradle template | ||
.gradle | ||
/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties | ||
|
||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff | ||
.idea/ | ||
|
||
# Gradle and Maven with auto-import | ||
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
# .idea/modules.xml | ||
# .idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
|
||
# Android studio 3.1+ serialized cache file | ||
.idea/caches/build_file_checksums.ser | ||
|
||
### Linux template | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
### Java template | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Copyright (c) 2019-2020. All rights reserved. | ||
* | ||
* @author Pieter De Clercq | ||
* | ||
* https://github.com/thepieterdc/intellij-plugin-verifier-action/ | ||
*/ | ||
|
||
package parser; | ||
|
||
import java.util.Arrays; | ||
|
||
/** | ||
* Main entry point. | ||
*/ | ||
public class Main { | ||
/** | ||
* Name of the environment variable that contains the versions. | ||
*/ | ||
private static final String ARG_VERSIONS = "INPUT_VERSIONS"; | ||
|
||
/** | ||
* Gets the release type. | ||
* | ||
* @param version the version string | ||
* @return the release type | ||
*/ | ||
private static String getReleaseType(final String version) { | ||
if (version.endsWith("-EAP-SNAPSHOT") | ||
|| version.endsWith("-EAP-CANDIDATE-SNAPSHOT") | ||
|| version.endsWith("-CUSTOM-SNAPSHOT")) { | ||
return "snapshots"; | ||
} | ||
if (version.endsWith("-SNAPSHOT")) { | ||
return "nightly"; | ||
} | ||
return "releases"; | ||
} | ||
|
||
/** | ||
* Gets the url to download the given version. | ||
* | ||
* @param version the version to parse | ||
* @return the url | ||
*/ | ||
private static String getUrl(final String version) { | ||
// Get the release type. | ||
final String releaseType = getReleaseType(version); | ||
|
||
// Construct the url. | ||
return String.format("https://www.jetbrains.com/intellij-repository/%s/com/jetbrains/intellij/idea/ideaIU/%s/ideaIU-%s.zip", | ||
releaseType, | ||
version, | ||
version | ||
); | ||
} | ||
|
||
/** | ||
* Main method. | ||
* | ||
* @param args unused | ||
*/ | ||
public static void main(String[] args) { | ||
// Get the versions to test. | ||
final String[] versions = System.getenv(ARG_VERSIONS).split("\n"); | ||
|
||
// Parse every version and print the download paths. | ||
Arrays.stream(versions).map(Main::getUrl).forEach(System.out::println); | ||
} | ||
} |