Skip to content

Commit e852803

Browse files
committed
Document how to use docker-compose to build and test
1 parent 3373288 commit e852803

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,24 @@ cd target
2525
cmake ..
2626
make
2727
./scalaBindgen /usr/include/ctype.h -name ctype --
28+
```
29+
30+
Alternatively, you can use [docker-compose] to build and test the program:
31+
32+
```sh
33+
# Build the docker image with LLVM version 6.0.
34+
docker-compose build ubuntu-18.04-llvm-6.0
35+
# Build the bindgen tool and run the tests.
36+
docker-compose run --rm ubuntu-18.04-llvm-6.0
37+
# Run the bindgen tool inside the container.
38+
docker-compose run --rm ubuntu-18.04-llvm-6.0 target/scalaBindgen -name union tests/samples/Union.h --
2839
```
2940

3041
[CMake]: https://cmake.org/
3142
[LLVM]: https://llvm.org/
3243
[Clang]: https://clang.llvm.org/
3344
[Scala Native setup guide]: http://www.scala-native.org/en/latest/user/setup.html
45+
[docker-compose]: https://docs.docker.com/compose/
3446

3547
## Testing
3648

0 commit comments

Comments
 (0)