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:
10
10
docker-compose run --rm $TEST_ENV scripts/clangfmt --test;
11
11
fi
12
12
- if [[ "$TEST_ENV" = *llvm-6.0 ]]; then
13
+ export VERSION="${TRAVIS_COMMIT}";
13
14
docker-compose build bindgen;
14
15
find . -name target | xargs sudo rm -rf;
15
16
scripts/docker-test.sh;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3'
2
2
3
3
services :
4
4
bindgen :
5
- image : scalabindgen/scala-native-bindgen
5
+ image : scalabindgen/scala-native-bindgen:${VERSION:-latest}
6
6
build :
7
7
context : bindgen
8
8
args :
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ if [[ "$#" -gt 1 ]] && [[ "$1" == /* ]]; then
14
14
volumes+=" --volume=$1 :$1 "
15
15
fi
16
16
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"
14
14
rm -rf " $outdir "
15
15
mkdir -p " $outdir "
16
16
17
+ echo " Using version '${VERSION:- latest} '"
18
+
17
19
for input in tests/samples/* .h; do
18
20
name=" $( basename " $input " .h) "
19
21
output=" $outdir /$name .scala"
You can’t perform that action at this time.
0 commit comments