File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ script:
1010 docker-compose run --rm $TEST_ENV scripts/clangfmt --test;
1111 fi
1212 - if [[ "$TEST_ENV" = *llvm-6.0 ]]; then
13+ export VERSION="${TRAVIS_COMMIT}";
1314 docker-compose build bindgen;
1415 find . -name target | xargs sudo rm -rf;
1516 scripts/docker-test.sh;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3'
22
33services :
44 bindgen :
5- image : scalabindgen/scala-native-bindgen
5+ image : scalabindgen/scala-native-bindgen:${VERSION:-latest}
66 build :
77 context : bindgen
88 args :
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ if [[ "$#" -gt 1 ]] && [[ "$1" == /* ]]; then
1414 volumes+=" --volume=$1 :$1 "
1515fi
1616
17- exec docker run --rm " ${volumes[@]} " scalabindgen/scala-native-bindgen " $@ "
17+ exec docker run --rm " ${volumes[@]} " " scalabindgen/scala-native-bindgen: ${VERSION :- latest} " " $@ "
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ outdir="tests/target/docker-samples"
1414rm -rf " $outdir "
1515mkdir -p " $outdir "
1616
17+ echo " Using version '${VERSION:- latest} '"
18+
1719for input in tests/samples/* .h; do
1820 name=" $( basename " $input " .h) "
1921 output=" $outdir /$name .scala"
You can’t perform that action at this time.
0 commit comments