Skip to content

Commit

Permalink
Add semaphore.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh9 committed Dec 7, 2018
1 parent ab72b7b commit 18cdb50
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 18cdb50

Please sign in to comment.