diff options
author | Led Mitz <smoothshifter@tuta.io> | 2024-02-20 03:16:08 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2024-02-20 03:16:08 +0000 |
commit | e14910c45ed11a5aaa5647e618a915d12519b0a0 (patch) | |
tree | e66384e33b070a9a1938d5f237d6c812718f17f3 | |
parent | 1a5da6ee60b90927ddb10abbf7defac3982cdd68 (diff) | |
parent | ad78e6a131143dbd18a47f03943f3be5eec00d01 (diff) | |
download | tmwa-e14910c45ed11a5aaa5647e618a915d12519b0a0.tar.gz tmwa-e14910c45ed11a5aaa5647e618a915d12519b0a0.tar.bz2 tmwa-e14910c45ed11a5aaa5647e618a915d12519b0a0.tar.xz tmwa-e14910c45ed11a5aaa5647e618a915d12519b0a0.zip |
Merge branch 'py2CI' into 'master'
Enable GitLab CI
See merge request legacy/tmwa!259
-rw-r--r-- | .gitlab-ci.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..67559b8 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,52 @@ +# Copied in from Moubootaur Legends's Hercules .gitlab-ci.yml +stages: + - build + +variables: &base_vars + DEBIAN_COMMON_PACKAGES: make git gcc g++ + # Depth of clone. If no tag is made after this many commits, then + # the git describe call and version header generation will fail. + GIT_DEPTH: 100 # Will break again eventually. + +.prerequisites: &prerequisites + before_script: + - echo "Building TMW Athena $CI_BUILD_NAME" + - uname -a + - apt-get update + - apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES + + +# Active server OS? +re:ubuntu1804:build: + <<: *prerequisites + stage: build + image: ubuntu:18.04 + variables: + <<: *base_vars + INSTALL_PACKAGES: python + script: + - git submodule update --init + - git fetch -t + - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" + - ./configure --user + - make + - whoami + - make install + +# Next server OS? +re:ubuntu2204:build: + <<: *prerequisites + stage: build + image: ubuntu:22.04 + variables: + <<: *base_vars + INSTALL_PACKAGES: python2 + script: + - ln -s /usr/bin/python2 /usr/bin/python + - git submodule update --init + - git fetch -t + - printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)" + - ./configure --user + - make + - whoami + - make install |