-
Notifications
You must be signed in to change notification settings - Fork 44
/
install.sh
30 lines (24 loc) · 971 Bytes
/
install.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
#!/bin/bash
set -e
export MAVEN_OPTS="-Xms512m -Xmx1024m -Xss16m $MAVEN_OPTS"
# change ctree into jar
# temporary workaround until the Spoofax Gradle plugin is out
cd pgql-spoofax/
sed -i.bak "s/format: ctree/format: jar/g" metaborg.yaml
sed -i.bak "s/ provider \: target\/metaborg\/stratego.ctree/\/\/ provider \: target\/metaborg\/stratego.ctree/g" editor/Main.esv
mvn clean install
sed -i.bak "s/format: jar/format: ctree/g" metaborg.yaml
sed -i.bak "s/\/\/ provider \: target\/metaborg\/stratego.ctree/ provider \: target\/metaborg\/stratego.ctree/g" editor/Main.esv
cd ../
cd graph-query-ir/; mvn clean install; cd ../
cd pgql-lang/
mkdir -p src/main/resources/
rm -f src/main/resources/*.spoofax-language # remove any spoofax binaries from previous builds
cp ../pgql-spoofax/target/pgqllang-0.0.0-SNAPSHOT.spoofax-language src/main/resources/pgql.spoofax-language
mvn clean install
cd ../
cd pgql-tests/
mvn test
cd spring-boot-app/
bash run.sh
cd ../../