summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: baf5a9397c6de3600cf28a9cda5c4ae3d7e493a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
stages:
  - build
#  - test
#  - deploy
#  - release

before_script:
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY

mxe_gcc5:
  stage: build
  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