blob: e1138ad2d2b994b783feda0fb927b3e4a30bc37c (
plain)
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
|
# Test
```
cd ~/lux/lux-jvm/ && lein clean && lein lux auto test
```
# Build
```
cd ~/lux/lux-jvm/ \
&& lux clean \
&& lux auto build
## Use bootstrapping compiler to build new JVM compiler
cd ~/lux/lux-jvm/ \
&& lein clean \
&& lein lux auto build
```
# REPL
```
cd ~/lux/lux-jvm/ && java -jar target/program.jar repl --source ~/lux/stdlib/source --target ~/lux/stdlib/target
```
# Try
```
cd ~/lux/lux-jvm/ && time java -jar target/program.jar build --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux --program _
cd ~/lux/lux-jvm/ && java -jar target/program.jar export --source ~/lux/stdlib/source --target ~/lux/stdlib/target
cd ~/lux/stdlib/ \
&& cd ~/lux/lux-jvm/ \
&& time java -jar target/program.jar build --source ~/lux/stdlib/source --library ~/lux/stdlib/target/library.tar --target ~/lux/stdlib/target --module test/lux --program _
## Use new JVM compiler to compile tests for the Standard Library
cd ~/lux/stdlib/ \
&& lein clean \
&& java -jar ~/lux/lux-jvm/target/program.jar build --host_dependency ~/.m2/repository/com/github/luxlang/lux-jvm-function/0.6.5/lux-jvm-function-0.6.5.jar --source ~/lux/stdlib/source --target ~/lux/stdlib/target --module test/lux --program _ \
&& java -jar ~/lux/stdlib/target/program.jar
```
# Deploy
```
cd ~/lux/lux-jvm/ \
&& mvn install:install-file -Dfile=target/program.jar -DgroupId=com.github.luxlang -DartifactId=lux-jvm -Dversion=0.8.0-SNAPSHOT -Dpackaging=jar
cd ~/lux/lux-jvm/ && mvn deploy:deploy-file \
-Durl=https://$NEXUS_USERNAME:$NEXUS_PASSWORD@oss.sonatype.org/content/repositories/snapshots/ \
-Dfile=target/program.jar \
-DgroupId=com.github.luxlang \
-DartifactId=lux-jvm \
-Dversion=0.8.0-SNAPSHOT \
-Dpackaging=jar
```
# Release
```
LUX_VERSION=0.7.0 && \
cd ~/lux/lux-jvm/ && \
lein pom && \
mv pom.xml RELEASE/lux-jvm-$LUX_VERSION.pom && \
mv target/program.jar RELEASE/lux-jvm-$LUX_VERSION.jar && \
cd RELEASE && \
touch README.md && \
zip lux-jvm-$LUX_VERSION-sources.jar README.md && \
zip lux-jvm-$LUX_VERSION-javadoc.jar README.md && \
rm README.md && \
for file in *.*; do gpg -ab $file; done
```
|