summaryrefslogtreecommitdiff
path: root/simulator/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-29 16:04:57 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 16:18:13 +0200
commit46b06fb446e79c390c01953d31d700b8e73da24d (patch)
treeb2329630ebf2c90d297ba0d3046ccd558d12d042 /simulator/.gitlab-ci.yml
parentebcacf96fbc1cd16a91523f95dd01db046fb7f90 (diff)
Prepare simulator repository for monorepo
This change prepares the simulator Git repository for the monorepo residing at https://github.com/atlarge-research.com/opendc. To accomodate for this, we move all files into a simulator subdirectory.
Diffstat (limited to 'simulator/.gitlab-ci.yml')
-rw-r--r--simulator/.gitlab-ci.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/simulator/.gitlab-ci.yml b/simulator/.gitlab-ci.yml
new file mode 100644
index 00000000..a095f7e7
--- /dev/null
+++ b/simulator/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+image: gradle:6.1-jdk13
+
+variables:
+ GRADLE_OPTS: "-Dorg.gradle.daemon=false"
+
+before_script:
+ - export GRADLE_USER_HOME=`pwd`/.gradle
+
+stages:
+ - build
+ - test
+
+build:
+ stage: build
+ script:
+ - gradle --build-cache assemble
+ allow_failure: false
+ cache:
+ key: "$CI_COMMIT_REF_NAME"
+ policy: push
+ paths:
+ - build
+ - .gradle
+
+test:
+ stage: test
+ script:
+ - gradle check
+ cache:
+ key: "$CI_COMMIT_REF_NAME"
+ policy: pull
+ paths:
+ - build
+ - .gradle