From: Neal Gompa Date: Sun, 13 Nov 2016 20:37:49 +0000 (-0500) Subject: Add .gitlab-ci.yml for enabling GitLab CI X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=ed6e0cac7da2c7a50e63cac3b7b91d4d017f418d;p=lugaru.git Add .gitlab-ci.yml for enabling GitLab CI --- 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