From 6b7435751e44cb2135318d5850cd8ef90823937b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Bron=C3=A8s?= <romain.brones@synchrotron-soleil.fr> Date: Tue, 27 Feb 2024 18:11:47 +0100 Subject: [PATCH] feat: Try gitlab pipeline --- .gitlab-ci.yml | 12 ++++++++++++ Makefile | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0e5a933 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +image: python:latest + +stages: # List of stages for jobs, and their order of execution + - build + + +build-job: # This job runs in the build stage, which runs first. + stage: build + script: + - echo "Compiling the code..." + - make build + - echo "Compile complete." diff --git a/Makefile b/Makefile index 46dce0a..1989d8f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ VERSION: echo version=\'$(shell git describe --tags | sed 's/\(.*\)-.*/\1/')\' > FofbTool/_version.py +build: VERSION + python setup.py sdist clean: rm -f FofbTool/_version.py -- GitLab