diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-02-11 14:33:16 +0100 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2020-02-11 14:33:16 +0100 |
| commit | 65a91a92afd8b6e71f08f5cbe345af30606c4861 (patch) | |
| tree | 18e26e73a3d4519b8352a17ae47c52ce8a75245a /.gitlab-ci.yml | |
| parent | 878990c8e230a43b534fc8e870f59630152fb6bf (diff) | |
| parent | f7026349d3a9cb4e3c02c7f46d4c593e78132e75 (diff) | |
Merge branch 'chore/gitlab-ci' into 'feat/2.x'
Add support for Gitlab CI
See merge request opendc/opendc-simulator!22
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..a095f7e7 --- /dev/null +++ b/.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 |
