aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..da5000f13
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@
+jobs:
+ tags:
+ - shell
+
+ before_script:
+ - docker ps -a -q | xargs --no-run-if-empty docker rm -f
+
+ script:
+ - curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx
+ - chmod +x drone
+ - ./drone exec --pipeline compliance .gitlab-ci-drone.yml && ./drone exec --pipeline testing-amd64 .gitlab-ci-drone.yml
+
+ after_script:
+ - docker run --rm --volume $(pwd):/drone/src --workdir /drone/src gitea/test_env:linux-amd64 chown -R $(id -u) .