Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update semaphore.yml #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .semaphore/pipeline_3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: v1.0
name: 'Deployment > ${{parameters.ENVIRONMENT}}'
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Test
task:
jobs:
- name: test
commands:
- echo "job 1"
17 changes: 14 additions & 3 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ blocks:
epilogue:
always:
commands:
- "[[ -f junit.xml ]] && test-results publish --name \"🧪 Unit tests\" junit.xml"
- "[[ -f junit.xml ]] && test-results publish --name \"\U0001F9EA Unit tests\" junit.xml"
- name: Integration tests
dependencies:
- Unit tests
Expand All @@ -78,11 +78,22 @@ blocks:
epilogue:
always:
commands:
- "[[ -f junit.xml ]] && test-results publish --name \"🏗️ Integration tests\" junit.xml"

- "[[ -f junit.xml ]] && test-results publish --name \"\U0001F3D7️ Integration tests\" junit.xml"
after_pipeline:
task:
jobs:
- name: Publish Results
commands:
- test-results gen-pipeline-report
promotions:
- name: Example promotion
pipeline_file: pipeline_3.yml
parameters:
env_vars:
- required: true
options:
- Stage
- Production
default_value: Stage
description: Where to deploy?
name: ENVIRONMENT