.semaphore/semaphore.yml in betterlog-0.15.1 vs .semaphore/semaphore.yml in betterlog-0.15.2

- old
+ new

@@ -14,10 +14,11 @@ jobs: - name: cache bundle commands: - sem-version ruby 2.7.2 - cache restore gems-$SEMAPHORE_GIT_BRANCH,gems-master + - bundle config set path 'vendor/bundle' - bundle config jobs $(getconf _NPROCESSORS_ONLN) - bundle install - cache store gems-$SEMAPHORE_GIT_BRANCH vendor/bundle - name: "Unit tests" @@ -32,29 +33,31 @@ # Setup ruby - sem-version ruby 2.7.2 # Setup gems - cache restore gems-$SEMAPHORE_GIT_BRANCH,gems-master + - bundle config set path 'vendor/bundle' - bundle config jobs $(getconf _NPROCESSORS_ONLN) - bundle install jobs: - name: RSpec Unit Tests commands: - - rake + - bundle exec rake - name: Building Docker Image task: secrets: - name: GCP prologue: commands: - gcloud auth activate-service-account --key-file=.secrets/gcp.json - - gcloud auth configure-docker -q + - gcloud auth configure-docker -q eu.gcr.io - checkout jobs: - name: Building and pushing commands: - - make build push-latest + - make build + - test "$SEMAPHORE_GIT_BRANCH" = "master" && make push-latest