-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
136 changed files
with
2,512 additions
and
1,017 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 |
---|---|---|
|
@@ -24,3 +24,6 @@ build/ | |
TEST-*.* | ||
|
||
|
||
|
||
server/erlide_ide | ||
*.crashdump |
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 |
---|---|---|
|
@@ -25,7 +25,16 @@ pipeline { | |
steps{ | ||
script { | ||
compile() | ||
analyze() | ||
analyze1() | ||
} | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps{ | ||
script { | ||
test() | ||
analyze2() | ||
} | ||
} | ||
} | ||
|
@@ -61,14 +70,9 @@ pipeline { | |
|
||
def checkout() { | ||
deleteDir() | ||
if(env.BRANCH_NAME != null) { // multi branch | ||
checkout scm | ||
git_branch = env.BRANCH_NAME | ||
} else { | ||
git url: '[email protected]:vladdu/erlide_kernel.git', branch: 'pu' | ||
sh 'git symbolic-ref --short HEAD > GIT_BRANCH' | ||
git_branch=readFile('GIT_BRANCH').trim() | ||
} | ||
checkout scm | ||
git_branch = env.BRANCH_NAME | ||
|
||
sh('git rev-parse HEAD > GIT_COMMIT') | ||
git_commit=readFile('GIT_COMMIT') | ||
short_commit=git_commit.take(6) | ||
|
@@ -79,13 +83,24 @@ def checkout() { | |
def compile() { | ||
sh "chmod u+x build" | ||
sh "./build" | ||
sleep 2L | ||
} | ||
|
||
def test() { | ||
sh "chmod u+x build" | ||
sh "./build test" | ||
sleep 2L | ||
sh "find . -name \"TEST-*.xml\" -exec xargs rename -v 's/\"//' {} \\;" | ||
} | ||
|
||
def analyze() { | ||
step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, | ||
consoleParsers: [[parserName: 'Erlang Compiler (erlc)']], | ||
def analyze1() { | ||
step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: true, canRunOnFailed: true, | ||
consoleParsers: [[parserName: 'Erlang Compiler (erlc)'], [parserName: 'Maven']], | ||
excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: '']) | ||
step([$class: 'TasksPublisher', canComputeNew: false, excludePattern: '**/_build/**/*.*', healthy: '', high: 'FIXME,XXX', low: '', normal: 'TODO', pattern: '**/*.erl,**/*.hrl', unHealthy: '']) | ||
} | ||
|
||
def analyze2() { | ||
step([$class: 'AnalysisPublisher', canComputeNew: false, healthy: '', unHealthy: '']) | ||
step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: '**/TEST*.xml']) | ||
//step([$class: 'JacocoPublisher', exclusionPattern: '', sourcePattern: '**/src/']) | ||
|
@@ -108,8 +123,8 @@ def buildEclipse() { | |
} | ||
|
||
def buildServer() { | ||
sh "cd server && ./build && cd .." | ||
step([$class: 'ArtifactArchiver', artifacts: "server/erlide_ide", fingerprint: true]) | ||
sh "cd ide && ./build escriptize && cd .." | ||
step([$class: 'ArtifactArchiver', artifacts: "ide/_build/default/bin/erlide_ide", fingerprint: true]) | ||
} | ||
|
||
@NonCPS | ||
|
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>erlide_builder</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.erlide.core.erlbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.erlide.core.erlnature</nature> | ||
</natures> | ||
</projectDescription> |
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,7 @@ | ||
backend_version=17.0 | ||
eclipse.preferences.version=1 | ||
external_includes= | ||
external_modules= | ||
include_dirs=include; | ||
output_dir=ebin | ||
source_dirs=src; |
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,3 @@ | ||
builderData=INTERNAL|compile|clean|test| | ||
configType=INTERNAL | ||
eclipse.preferences.version=1 |
File renamed without changes.
Empty file.
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
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 was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.