setup.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. fw_depends java mono dsl_platform
  3. echo "Cleaning up..."
  4. rm -rf $TROOT/exe $TROOT/tmp $TROOT/dsl-clc.jar $TROOT/http-server.zip
  5. echo "Download DSL compiler client"
  6. wget -O $TROOT/dsl-clc.jar https://github.com/ngs-doo/dsl-compiler-client/releases/download/1.8.2/dsl-clc.jar
  7. echo "Download Revenj.NET HTTP server 1.4.1"
  8. wget -O $TROOT/http-server.zip https://github.com/ngs-doo/revenj/releases/download/1.4.1/http-server.zip
  9. echo "Unzipping HTTP server"
  10. unzip $TROOT/http-server.zip -d $TROOT/exe
  11. echo "Compiling the server model and downloading dependencies..."
  12. java -jar $TROOT/dsl-clc.jar \
  13. temp=$TROOT/tmp/ \
  14. force \
  15. dsl=$TROOT/Revenj.Bench \
  16. manual-json \
  17. compiler=$IROOT/dsl-compiler.exe \
  18. revenj.net=$TROOT/exe/ServerModel.dll \
  19. no-prompt \
  20. dependencies:revenj.net=$TROOT/exe
  21. echo "Compiling the benchmark project..."
  22. xbuild $TROOT/Revenj.Bench/Revenj.Bench.csproj /t:Rebuild /p:Configuration=Release
  23. echo "Copying the configuration template"
  24. cat $TROOT/Revenj.Http.exe.config | sed 's|\(ConnectionString.*server=\)localhost|\1'"${DBHOST}"'|' > $TROOT/exe/Revenj.Http.exe.config
  25. echo "Running the Revenj instance"
  26. mono $TROOT/exe/Revenj.Http.exe