mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Add docker based gitlab ci config
This commit is contained in:
6
ci/Dockerfile
Normal file
6
ci/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
RUN /bin/sh -c "dpkg --add-architecture i386"
|
||||
RUN /bin/sh -c "apt-get update && apt-get upgrade -y && apt-get install -y git make g++ gcc-9 g++-9 gcc-9-multilib g++-9-multilib"
|
||||
|
||||
CMD ["/bin/bash"]
|
6
ci/create-image.sh
Executable file
6
ci/create-image.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Go to repository root
|
||||
cd "$(dirname "$0")" || exit 2
|
||||
|
||||
docker build -t oat .
|
6
ci/scripts/build.sh
Executable file
6
ci/scripts/build.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Go to repository root
|
||||
cd "$(dirname "$0")/../.." || exit 2
|
||||
|
||||
docker run --rm -v "$(pwd):/mnt/oat" oat /bin/bash -c "/mnt/oat/generate.sh && /mnt/oat/build-linux.sh"
|
8
ci/scripts/test.sh
Executable file
8
ci/scripts/test.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Go to repository root
|
||||
cd "$(dirname "$0")/../../build/lib" || exit 2
|
||||
|
||||
./Release_x86/tests/ObjCommonTests
|
||||
./Release_x86/tests/ZoneCodeGeneratorLibTests
|
||||
./Release_x86/tests/ZoneCommonTests
|
Reference in New Issue
Block a user