Skip to content

Commit 1528fe0

Browse files
committed
Merge branch 'pu'
2 parents d37d91b + 1bd5ad2 commit 1528fe0

File tree

136 files changed

+2512
-1017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2512
-1017
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ build/
2424
TEST-*.*
2525

2626

27+
28+
server/erlide_ide
29+
*.crashdump

Jenkinsfile

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@ pipeline {
2525
steps{
2626
script {
2727
compile()
28-
analyze()
28+
analyze1()
29+
}
30+
}
31+
}
32+
33+
stage('Test') {
34+
steps{
35+
script {
36+
test()
37+
analyze2()
2938
}
3039
}
3140
}
@@ -61,14 +70,9 @@ pipeline {
6170

6271
def checkout() {
6372
deleteDir()
64-
if(env.BRANCH_NAME != null) { // multi branch
65-
checkout scm
66-
git_branch = env.BRANCH_NAME
67-
} else {
68-
git url: '[email protected]:vladdu/erlide_kernel.git', branch: 'pu'
69-
sh 'git symbolic-ref --short HEAD > GIT_BRANCH'
70-
git_branch=readFile('GIT_BRANCH').trim()
71-
}
73+
checkout scm
74+
git_branch = env.BRANCH_NAME
75+
7276
sh('git rev-parse HEAD > GIT_COMMIT')
7377
git_commit=readFile('GIT_COMMIT')
7478
short_commit=git_commit.take(6)
@@ -79,13 +83,24 @@ def checkout() {
7983
def compile() {
8084
sh "chmod u+x build"
8185
sh "./build"
86+
sleep 2L
87+
}
88+
89+
def test() {
90+
sh "chmod u+x build"
91+
sh "./build test"
92+
sleep 2L
93+
sh "find . -name \"TEST-*.xml\" -exec xargs rename -v 's/\"//' {} \\;"
8294
}
8395

84-
def analyze() {
85-
step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false,
86-
consoleParsers: [[parserName: 'Erlang Compiler (erlc)']],
96+
def analyze1() {
97+
step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: true, canRunOnFailed: true,
98+
consoleParsers: [[parserName: 'Erlang Compiler (erlc)'], [parserName: 'Maven']],
8799
excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: ''])
88100
step([$class: 'TasksPublisher', canComputeNew: false, excludePattern: '**/_build/**/*.*', healthy: '', high: 'FIXME,XXX', low: '', normal: 'TODO', pattern: '**/*.erl,**/*.hrl', unHealthy: ''])
101+
}
102+
103+
def analyze2() {
89104
step([$class: 'AnalysisPublisher', canComputeNew: false, healthy: '', unHealthy: ''])
90105
step([$class: 'JUnitResultArchiver', allowEmptyResults: true, testResults: '**/TEST*.xml'])
91106
//step([$class: 'JacocoPublisher', exclusionPattern: '', sourcePattern: '**/src/'])
@@ -108,8 +123,8 @@ def buildEclipse() {
108123
}
109124

110125
def buildServer() {
111-
sh "cd server && ./build && cd .."
112-
step([$class: 'ArtifactArchiver', artifacts: "server/erlide_ide", fingerprint: true])
126+
sh "cd ide && ./build escriptize && cd .."
127+
step([$class: 'ArtifactArchiver', artifacts: "ide/_build/default/bin/erlide_ide", fingerprint: true])
113128
}
114129

115130
@NonCPS

build

100644100755
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@ export REBAR_COLOR="low"
2525
#export QUIET=1
2626

2727
main() {
28+
arg=$1
29+
2830
setup_otp
2931
find . -name build | xargs chmod u+x
3032

31-
cmds="do clean -a, compile, eunit -c -v, cover -v"
33+
if [ "$arg" != "test" ]; then
34+
cmds="do clean -a, compile -v"
35+
else
36+
cmds="do eunit -c -v, cover -v"
37+
fi
3238

39+
set -e
3340
cd common
3441
./build $cmds
3542
cd ../debugger
@@ -40,4 +47,4 @@ main() {
4047
cd ..
4148
}
4249

43-
time main
50+
main "$@"

build_utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#! /bin/bash
1+
#! /bin/bash -e
22

3-
declare -A OTP_VSNS=( ["17"]="17.5" ["18"]="18.3" ["19"]="19.2")
3+
declare -A OTP_VSNS=( ["17"]="17.5" ["18"]="18.3" ["19"]="19.3")
44

55
build_project() {
66
REBAR=$1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>erlide_builder</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.erlide.core.erlbuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.erlide.core.erlnature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
backend_version=17.0
2+
eclipse.preferences.version=1
3+
external_includes=
4+
external_modules=
5+
include_dirs=include;
6+
output_dir=ebin
7+
source_dirs=src;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
builderData=INTERNAL|compile|clean|test|
2+
configType=INTERNAL
3+
eclipse.preferences.version=1
File renamed without changes.

common/apps/erlide_builder/priv/.keep

Whitespace-only changes.

common/apps/erlide_common/src/builder/erlide_builder.app.src renamed to common/apps/erlide_builder/src/erlide_builder.app.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{erlide_context, builder},
55
{registered, []},
66
{applications, [kernel, stdlib, erlide_common]},
7-
{env, []},
8-
{mod, {erlide_builder_app, []}}
7+
{env, []}
98
]}
109
.

0 commit comments

Comments
 (0)