summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
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 19:41:48 +0100
commit9cb9199a249d147289d014d107b4cbff5dd73b23 (patch)
tree896878854ec6fa8edc72eefb328c19cb7bf8fdac /.gitlab-ci.yml
parenteaf17b389e9f66aaca443da61c0b3d93e04c9926 (diff)
downloadtmwa-9cb9199a249d147289d014d107b4cbff5dd73b23.tar.gz
tmwa-9cb9199a249d147289d014d107b4cbff5dd73b23.tar.bz2
tmwa-9cb9199a249d147289d014d107b4cbff5dd73b23.tar.xz
tmwa-9cb9199a249d147289d014d107b4cbff5dd73b23.zip
Enable GitLab CI
+ fetch submodules +install git... No compiling C++ without a C++ compiler..
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..ed664ab
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+# Copied in from Moubootaur Legends's Hercules .gitlab-ci.yml
+stages:
+ - build
+
+variables: &base_vars
+ DEBIAN_COMMON_PACKAGES: make python3 git gcc g++
+
+.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
+
+# Compilers
+ variables:
+ <<: *base_vars
+
+re:debian-stable:
+ <<: *prerequisites
+ stage: build
+ image: debian:stable
+ variables:
+ <<: *base_vars
+ script:
+ - git submodule update --init
+ - ./configure --user
+ - make
+ - make install