diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ac23f32 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +variables: + REPO_OPENGL: "http://10.0.0.2:81/glew/OpenGL-Registry.git" + REPO_EGL: "http://10.0.0.2:81/glew/EGL-Registry.git" +# REPO_GLFIXES: "https://github.com/nigels-com/glfixes" + +job: + script: + - make -C auto clobber + - make extensions + - make dist-src + - make clean; SYSTEM=linux make + - make clean; SYSTEM=linux-osmesa make + - make clean; SYSTEM=linux-egl make + - make clean; SYSTEM=linux-clang make + - make clean; SYSTEM=linux-clang-egl make + - pushd build/cmake; git clean -xdf .; cmake -G 'Unix Makefiles' . ; make; popd + - pushd build/cmake; git clean -xdf .; cmake -G 'Unix Makefiles' -DGLEW_OSMESA=1 . ; make; popd + - pushd build/cmake; git clean -xdf .; cmake -G 'Unix Makefiles' -DGLEW_EGL=1 . ; make; popd + + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + when: on_success + expire_in: 1 year + paths: + - glew-*.tgz + - glew-*.zip \ No newline at end of file diff --git a/auto/Makefile b/auto/Makefile index 3efc5de..fa3218d 100644 --- a/auto/Makefile +++ b/auto/Makefile @@ -15,6 +15,10 @@ PYTHON ?= python EXT = extensions/gl CORE = core/gl +REPO_OPENGL ?= https://github.com/KhronosGroup/OpenGL-Registry.git +REPO_EGL ?= https://github.com/KhronosGroup/EGL-Registry.git +REPO_GLFIXES ?= https://github.com/nigels-com/glfixes + BIN = bin SRC = src BLACKLIST = blacklist @@ -89,9 +93,9 @@ OpenGL-Registry/.dummy: @echo "--------------------------------------------------------------------" @echo "Downloading OpenGL-Registry" @echo "--------------------------------------------------------------------" - git clone https://github.com/KhronosGroup/OpenGL-Registry.git OpenGL-Registry - git clone https://github.com/KhronosGroup/EGL-Registry.git EGL-Registry - git clone --branch glew https://github.com/nigels-com/glfixes glfixes + git clone $(REPO_OPENGL) OpenGL-Registry + git clone $(REPO_EGL) EGL-Registry + git clone --branch glew $(REPO_GLFIXES) glfixes touch $@ $(EXT)/.dummy: OpenGL-Registry/.dummy