Fix prybar build (#50)
* build on ubuntu:18.04
* scala slow to load and we are not using prybar-scala in prod
commitafa5158bcb69d941d9695bab18e2e13ca8584e0c
authorDan Stowell <dan@repl.it>
dateThu 30 Apr 2020, 09:32 (6 years ago)
parent7cfedf6
Dockerfile+1−1
@@ -1,4 +1,4 @@
1−FROM ubuntu:disco
1+FROM ubuntu:18.04
22
33COPY scripts/docker-install.sh /tmp/docker-install.sh
44RUN /tmp/docker-install.sh
tests/scala/1_plus_1.expdeleted−14
@@ -1,14 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -i -q
5−match_max 100000
6−expect -exact "\[35m\r
7−--> \[0m"
8−send -- "1 + 1\r"
9−expect -exact "1 + 1\r
10−res0: Int = 2\r
11−\[35m\r
12−--> \[0m"
13−send -- ":quit\r"
14−expect eof
tests/scala/eval_code.expdeleted−6
@@ -1,6 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -e 1+1
5−match_max 100000
6−expect eof
tests/scala/loadfile.expdeleted−17
@@ -1,17 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -i test_files/sumofsquares.scala
5−match_max 100000
6−expect -exact "Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 11.0.5).\r
7−Type in expressions for evaluation. Or try :help.\r
8−\[35m\r
9−--> \[0m"
10−send -- "print(sumOfSquares(,"
11−expect -exact "\[K"
12−send -- "3, 4))\r"
13−expect -exact "3, 4))\r
14−25\[35m\r
15−--> \[0m"
16−send -- ":quit\r"
17−expect eof
tests/scala/printing.expdeleted−17
@@ -1,17 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -i -q
5−match_max 100000
6−expect -exact "\[35m\r
7−--> \[0m"
8−send -- "print(\"hello\")\r"
9−expect -exact "print(\"hello\")\r
10−hello\[35m\r
11−--> \[0m"
12−send -- "print(1 + 1)\r"
13−expect -exact "print(1 + 1)\r
14−2\[35m\r
15−--> \[0m"
16−send -- ":quit\r"
17−expect eof
tests/scala/quit.expdeleted−8
@@ -1,8 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -i -q
5−match_max 100000
6−expect -exact "--> "
7−send -- ":quit\r"
8−expect eof
tests/scala/set_ps1.expdeleted−21
@@ -1,21 +0,0 @@
1−#!/usr/bin/expect -f
2−
3−set timeout -1
4−spawn ./prybar-scala -ps1 {sc> }
5−match_max 100000
6−expect -exact "Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 11.0.5).\r
7−Type in expressions for evaluation. Or try :help.\r
8−\[35m\r
9−sc> \[0m"
10−send -- "print(\"hit"
11−expect -exact "\[K"
12−send -- ""
13−expect -exact "\[K"
14−send -- ""
15−expect -exact "\[K"
16−send -- "prompt\")\r"
17−expect -exact "prompt\")\r
18−prompt\[35m\r
19−sc> \[0m"
20−send -- ":quit\r"
21−expect eof