diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98a6044..f7d5454 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,9 +30,9 @@ check_commits: before_script: - apk add git - npm install -g @commitlint/cli @commitlint/config-conventional - - git pull origin master + - git checkout origin/master script: - - npx commitlint --from origin/master --to HEAD --verbose + - npx commitlint --from origin/master --to ${CI_COMMIT_SHA} --verbose compile_jvm: stage: compile @@ -48,10 +48,10 @@ test_jvm: image: gumjoe/wacc-ci-scala:x86 stage: test # Use our own runner (not cloud VM or shared) to ensure we have multiple cores. - tags: [ large ] + tags: [large] # This is expensive, so do use `dependencies` instead of `needs` to # ensure all previous stages pass. - dependencies: [ compile_jvm ] + dependencies: [compile_jvm] before_script: - git clone https://$EXAMPLES_AUTH@gitlab.doc.ic.ac.uk/lab2425_spring/wacc-examples.git script: