summaryrefslogblamecommitdiff
path: root/.gitlab-ci.yml
blob: 5904d6821f664587c4267678637596966e18afb3 (plain) (tree)
1
2
3
4
5
6
7
8





            
         
              



                                     
          
               



                                                                                                 
                                                                                      

                                                         
                                                        



                                                                                          



                                  

             



                     
stages:
  - build
#  - test
#  - deploy
#  - release

mxe_gcc5:
  stage: build
  only:
    # change me
    - branches@jak89_1/docker-testing
  script:
    - cd /
    # change me
    - rm -rf /opt/
    - git clone https://gitlab.com/jak89_1/docker-testing.git -b $CI_COMMIT_BRANCH /opt || exit 1
    - rm -rf /opt/.git/
    - mv -f opt/* /
    - git clone https://gitlab.com/jak89_1/manaplus.git -b $CI_COMMIT_BRANCH || exit 1
    - chmod +x ./build_manaplus.sh && ./build_manaplus.sh
    # copy artifacts
    - cp -r /build/ /builds/jak89_1/docker-testing/build
    - mkdir -p /builds/jak89_1/docker-testing/logs/
    - cp /manaplus/build/tmp/config.log /builds/jak89_1/docker-testing/build/logs/ || true
    - cp /manaplus/build/make2.log /builds/jak89_1/docker-testing/build/logs/ || true
  image: registry.gitlab.com/jak89_1/docker-testing:v1.0.3
  variables:
    CROSS: i686-w64-mingw32.shared
  artifacts:
    paths:
      - build
      - logs
    when: always
    expire_in: 3 week
  tags:
    - docker