Commit 2ee61d18 authored by John Zhang's avatar John Zhang

fix: use script command to enable tty to run gitlab-runner locally

When trying to locally test the CI problem, there was another
issue with running gitlab-runner locally.
It seems that during the deploy stage of building DayTrader,
Geronimo tries to execute `stty -icanon min 1 < /dev/tty` command.
It causes the whole thing to hang.
The reason might be that tty is not enabled in gitlab-runner.
I found a hacky
[solution ](https://gitlab.com/gitlab-org/gitlab-runner/issues/1021)
that uses the script command to emulate tty. And it seems to work.
parent 2810aae6
......@@ -70,15 +70,15 @@ tomcat:
- ant -Dbuild.target-jar=dacapo.jar tomcat
- java -jar dacapo.jar tomcat
# tradebeans:
# script:
# - ant -Dbuild.target-jar=dacapo.jar tradebeans
# - java -jar dacapo.jar tradebeans
tradebeans:
script:
- script -q scriptfile ant -Dbuild.target-jar=dacapo.jar tradebeans
- script -q scriptfile java -jar dacapo.jar tradebeans
# tradesoap:
# script:
# - ant -Dbuild.target-jar=dacapo.jar tradesoap
# - java -jar dacapo.jar tradesoap
tradesoap:
script:
- script -q scriptfile ant -Dbuild.target-jar=dacapo.jar tradesoap
- script -q scriptfile java -jar dacapo.jar tradesoap
xalan:
script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment