File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ function build() {
4646 info " Build of ${full_tag} succeeded."
4747
4848 info " Testing ${full_tag} "
49- docker run --rm -v " $PWD /test-image.sh:/usr/local/bin/test.sh" node:" ${full_tag} " test.sh " ${full_version} "
49+ export full_tag=${full_tag}
50+ export full_version=${full_version}
51+ bats test-image.bats
5052}
5153
5254cd " $( cd " ${0%/* } " && pwd -P) " || exit
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bats
2+
3+ @test " Test for node and version" {
4+ run docker run --rm -it node:" $full_tag " node -e " process.stdout.write(process.versions.node)"
5+ [ " $status " -eq 0 ]
6+ [ " $output " == " ${full_version} " ]
7+ }
8+
9+ @test " Test for npm" {
10+ run docker run --rm -it node:" $full_tag " npm --version
11+ [ " $status " -eq 0 ]
12+ }
13+
14+ @test " Test for yarn" {
15+ run docker run --rm -it node:" $full_tag " yarn --version
16+ [ " $status " -eq 0 ]
17+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments