summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..ad653a6
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,48 @@
+stages:
+ - build
+# - test
+# - deploy
+# - release
+
+before_script:
+ - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
+
+mxe_gcc5:
+ only:
+ # change me
+ - branches@jak89_1/docker-testing
+ script:
+ # TODO: plz move me in a seperate script
+ - mkdir build
+ - mkdir logs
+ - cd /
+ # remove me
+ - ls -al
+ # change me
+ - git clone https://gitlab.com/jak89_1/manaplus.git -b $CI_COMMIT_BRANCH || exit 1
+ - cd manaplus
+ # change me in docker (laterâ„¢)
+ - sed -i 's|#define GL_GLEXT_VERSION 29|#ifndef GL_GLEXT_VERSION\n#define GL_GLEXT_VERSION 29\n#endif|' /mxe/usr/i686-w64-mingw32.shared/include/SDL/SDL_opengl.h
+ - ./tools/ci/jobs/mxe_gcc5.sh
+ - find manaplus/src -type f -name "*.exe"
+ - mv manaplus.exe /build
+ - mv dyecmd.exe /build
+ - /mxe/tools/copydlldeps.py -C/manaplus/src -L/mxe/usr/i686-w64-mingw32.shared/bin /build || true
+ # TODO: nsis
+ - cp -r /manaplus/data /build
+ - cp /AUTHORS /build
+ - cp /COPYING /build
+ - cp /README.txt /build
+ - cp packaging/windows/portable.xml /build
+ - ls -al /build
+ image: registry.gitlab.com/jak89_1/docker-testing:v1.0.1
+ variables:
+ CROSS: i686-w64-mingw32.shared
+ artifacts:
+ paths:
+ - /build
+ - /logs
+ when: always
+ expire_in: 3 week
+ tags:
+ - docker