WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

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

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