From e07fc0562d2e802e3f28d76e6c56cae51c9f4c16 Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Wed, 7 Feb 2018 13:15:54 +0200 Subject: [PATCH] Separate test build from run --- .travis.yml | 2 +- tests/build_test.sh | 6 ++++++ tests/build_travis.sh | 5 +++++ tests/test.sh | 4 ---- 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 tests/build_test.sh create mode 100755 tests/build_travis.sh diff --git a/.travis.yml b/.travis.yml index 3a6df9622..23d9ec619 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ before_install: - docker pull yglukhov/nim-base script: - docker run yglukhov/nim-base nim --version - - docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble install -y && ./tests/test.sh + - docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble install -y && ./tests/build_travis.sh && ./tests/test.sh diff --git a/tests/build_test.sh b/tests/build_test.sh new file mode 100755 index 000000000..90deaa6d4 --- /dev/null +++ b/tests/build_test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +nim c tests/code_stream_test.nim +nim c tests/gas_meter_test.nim +nim c tests/memory_test.nim +nim c tests/stack_test.nim diff --git a/tests/build_travis.sh b/tests/build_travis.sh new file mode 100755 index 000000000..73c825e89 --- /dev/null +++ b/tests/build_travis.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export PATH=$PATH:/nim/bin/nim +"$(dirname -- "$0")/build_test.sh" + diff --git a/tests/test.sh b/tests/test.sh index bd620c6a5..e52aa9fed 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,9 +1,5 @@ #!/bin/bash -nim c tests/code_stream_test.nim -nim c tests/gas_meter_test.nim -nim c tests/memory_test.nim -nim c tests/stack_test.nim ./tests/code_stream_test ./tests/gas_meter_test ./tests/memory_test