Separate test build from run

This commit is contained in:
Alexander Ivanov 2018-02-07 13:15:54 +02:00
parent 8a7a8f3e06
commit e07fc0562d
4 changed files with 12 additions and 5 deletions

View File

@ -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

6
tests/build_test.sh Executable file
View File

@ -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

5
tests/build_travis.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
export PATH=$PATH:/nim/bin/nim
"$(dirname -- "$0")/build_test.sh"

View File

@ -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