forked from scalatest/scalatest-eclipse-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem-build.sh
executable file
·75 lines (61 loc) · 3.52 KB
/
ecosystem-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
####################
#
# $1 - build profile
# $2 - ecosystem location
# $3 - scala version
# $4 - ecosystem id
# $5 - eclipse ecosystem
#
####################
function build() {
cd ${ROOT_DIR}
mvn -Pset-versions -P$1 -Drepo.scala-ide=$2 -Dscala.version=$3 -Drepo.eclipse=$5 -Dtycho.style=maven --non-recursive exec:java
mvn -Pset-versions -P$1 -Drepo.scala-ide=$2 -Dscala.version=$3 -Drepo.eclipse=$5 clean package
rm -rf ${TARGET_DIR}/$4
mkdir -p ${TARGET_DIR}
cp -r ${ROOT_DIR}/org.scala-ide.sdt.scalatest.update-site/target/site/ ${TARGET_DIR}/$4
}
###################
# root dir (containing this script)
ROOT_DIR=$(dirname $0)
cd ${ROOT_DIR}
ROOT_DIR=${PWD}
TARGET_DIR=~/tmp/scalatest-build-ecosystem
# scala-ide/build-tools/maven-tool/merge-site/ location
MERGE_TOOL_DIR=~/git/build-tools/maven-tool/merge-site
###################
set -x
rm -rf ${TARGET_DIR}
build scala-ide-3.0-2_10 http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site/ 2.10.4 e38-scala210-3.0 http://download.eclipse.org/releases/juno/
build scala-ide-3.0-2_10 http://download.scala-ide.org/sdk/helium/e37/scala210/stable/site/ 2.10.2 e37-scala210-3.0 http://download.eclipse.org/releases/indigo/
build scala-ide-3.0 http://download.scala-ide.org/sdk/helium/e38/scala29/stable/site/ 2.9.3-SNAPSHOT e38-scala29-3.0 http://download.eclipse.org/releases/juno/
build scala-ide-3.0 http://download.scala-ide.org/sdk/helium/e37/scala29/stable/site/ 2.9.3-SNAPSHOT e37-scala29-3.0 http://download.eclipse.org/releases/indigo/
git checkout .
rm org.scala-ide.sdt.scalatest.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.source.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.tests/META-INF/MANIFEST.MF.original
rm org.scala-ide.sdt.scalatest/META-INF/MANIFEST.MF.original
git checkout 2.11
build scala-ide-3.0-2_11 http://download.scala-ide.org/sdk/next/helium/e38/scala211/stable/site/ 2.11.2 e38-scala211-3.0 http://download.eclipse.org/releases/juno/
git checkout .
rm org.scala-ide.sdt.scalatest.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.source.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.tests/META-INF/MANIFEST.MF.original
rm org.scala-ide.sdt.scalatest/META-INF/MANIFEST.MF.original
git checkout kepler-nightly-2.11
build scala-ide-4.0-2_11 http://download.scala-ide.org/sdk/lithium/e38/scala211/stable/site 2.11.6 e38-scala211-4.0 http://download.eclipse.org/releases/juno/
git checkout .
rm org.scala-ide.sdt.scalatest.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.source.feature/feature.xml.original
rm org.scala-ide.sdt.scalatest.tests/META-INF/MANIFEST.MF.original
rm org.scala-ide.sdt.scalatest/META-INF/MANIFEST.MF.original
build scala-ide-4.0-2_11-luna http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site 2.11.6 e44-scala211-4.0 http://download.eclipse.org/releases/luna/
cd ${MERGE_TOOL_DIR}
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e37-scala29-3.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e38-scala29-3.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e37-scala210-3.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e38-scala210-3.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e38-scala211-3.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e38-scala211-4.0 package
mvn -Drepo.dest=${TARGET_DIR}/combined -Drepo.source=file://${TARGET_DIR}/e44-scala211-4.0 package