run npm install and link once before tests

This commit is contained in:
Eric Vergnaud 2020-10-04 11:23:54 +08:00
parent 7068d1bb0d
commit 263eb29a82
3 changed files with 9 additions and 5 deletions

View File

@ -218,7 +218,7 @@ before_install:
script:
- |
cd runtime-testsuite;
travis_wait 4 ../.travis/run-tests-$TARGET.sh;
rc=$?;
cat target/surefire-reports/*.dumpstream || true;
travis_wait 4 ../.travis/run-tests-$TARGET.sh
rc=$?
cat target/surefire-reports/*.dumpstream || true
exit $rc

View File

@ -2,4 +2,8 @@
set -euo pipefail
cd ../runtime/JavaScript
npm install
npm link
cd ../../runtime-testsuite
mvn -q -Dparallel=methods -DthreadCount=1 -Dtest=javascript.* test

View File

@ -268,8 +268,8 @@ public class BaseNodeTest implements RuntimeTestSupport {
public String execModule(String fileName) {
try {
String npmPath = locateNpm();
installRuntime(npmPath);
registerRuntime(npmPath);
// installRuntime(npmPath);
// registerRuntime(npmPath);
String modulePath = new File(new File(tmpdir), fileName)
.getAbsolutePath();
linkRuntime(npmPath);