From 18cdb50b367408b551a8e112caaafa8cf6a6717d Mon Sep 17 00:00:00 2001 From: Rishabh Joshi Date: Fri, 7 Dec 2018 16:24:45 +0530 Subject: [PATCH] Add semaphore.yml --- .semaphore/semaphore.yml | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .semaphore/semaphore.yml diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 0000000..5e76305 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,63 @@ +version: v1.0 +name: First pipeline example +agent: + machine: + type: e1-standard-2 + os_image: ubuntu1804 + +blocks: + - name: "Build" + task: + env_vars: + - name: APP_ENV + value: prod + jobs: + - name: Docker build + commands: + - checkout + - ls -1 + - echo $APP_ENV + - echo "Docker build..." + - echo "done" + + - name: "Smoke tests" + task: + jobs: + - name: Smoke + commands: + - checkout + - echo "make smoke" + + - name: "Unit tests" + task: + jobs: + - name: RSpec + commands: + - checkout + - echo "make rspec" + + - name: Lint code + commands: + - checkout + - echo "make lint" + + - name: Check security + commands: + - checkout + - echo "make security" + + - name: "Integration tests" + task: + jobs: + - name: Cucumber + commands: + - checkout + - echo "make cucumber" + + - name: "Push Image" + task: + jobs: + - name: Push + commands: + - checkout + - echo "make docker.push"