From ed6e0cac7da2c7a50e63cac3b7b91d4d017f418d Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 13 Nov 2016 15:37:49 -0500 Subject: [PATCH] Add .gitlab-ci.yml for enabling GitLab CI --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5384481 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +image: fedora:latest + +cache: + key: dnf + paths: + - /var/cache/dnf + +before_script: + - dnf --quiet --assumeyes install /usr/bin/cmake "pkgconfig(openal)" "pkgconfig(sdl)" "pkgconfig(glu)" "pkgconfig(libpng)" "pkgconfig(zlib)" "pkgconfig(vorbis)" "pkgconfig(vorbisfile)" "pkgconfig(ogg)" make + +build_gcc: + stage: build + script: + - dnf --quiet --assumeyes install gcc gcc-c++ + - export CC=gcc; export CXX=g++; mkdir -p x86_64-linux-gnu-gcc gcc-build; cd x86_64-linux-gnu-gcc; cmake .. -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/gcc-build; make -j4 + artifacts: + expire_in: 7d + paths: + - ./gcc-build + tags: + - shared + +build_clang: + stage: build + script: + - dnf --quiet --assumeyes install clang + - export CC=clang; export CXX=clang++; mkdir -p x86_64-linux-gnu-clang clang-build; cd x86_64-linux-gnu-clang; cmake .. -DLUGARU_INSTALL_PREFIX=/builds/osslugaru/lugaru/clang-build; make -j4 + artifacts: + expire_in: 7d + paths: + - ./clang-build + tags: + - shared -- 2.39.5