summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-12-13 23:14:07 +0100
committerFedja Beader <fedja@protonmail.ch>2024-02-13 22:17:56 +0100
commitad78e6a131143dbd18a47f03943f3be5eec00d01 (patch)
treebcce68196aef4ac2e94ddb18e4ae4e9b2b2fd6c0
parenteaf17b389e9f66aaca443da61c0b3d93e04c9926 (diff)
downloadtmwa-ad78e6a131143dbd18a47f03943f3be5eec00d01.tar.gz
tmwa-ad78e6a131143dbd18a47f03943f3be5eec00d01.tar.bz2
tmwa-ad78e6a131143dbd18a47f03943f3be5eec00d01.tar.xz
tmwa-ad78e6a131143dbd18a47f03943f3be5eec00d01.zip
Enable GitLab CI
+Add meway's Ubuntu +Add python -> python2 symlink +Separate python/python2 into INSTALL_PACKAGES
-rw-r--r--.gitlab-ci.yml52
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