-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from romw314/set-up-semaphore
Set up semaphore
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: v1.0 | ||
name: Initial Pipeline | ||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu2004 | ||
blocks: | ||
- name: Reverse | ||
task: | ||
jobs: | ||
- name: 'Job #1' | ||
commands: | ||
- bash -x bg-f < in.txt | tee out.txt | ||
- '[ "$(rev in.txt)" = "$(cat out.txt)" ]' | ||
parallelism: 4 | ||
- name: 'Job #2' | ||
commands: | ||
- rev in.txt | bash -x bg-f | tee out.txt | ||
- '[ "$(cat in.txt)" = "$(cat out.txt)" ]' | ||
parallelism: 4 | ||
prologue: | ||
commands: | ||
- checkout | ||
- sed examples/reverse.bgn -e 's/STRGET forever/STRGET forever\nALLOW_UNDEF\nCONST_WRITE anuc forever/' -e 's/<<//' -e 's/>>//' | tee reverse_one.bgn | ||
- ./bashgenn reverse_one.bgn | ||
- openssl rand -base64 256 | sed -z 's/\n//g' | tee in.txt | ||
- echo >> in.txt | ||
run: | ||
when: change_in('/bashgenn') OR change_in('/examples/') | ||
dependencies: [] | ||
- name: 'Hello, World!' | ||
dependencies: [] | ||
task: | ||
prologue: | ||
commands: | ||
- checkout | ||
- ./bashgenn examples/hello_world.bgn | ||
jobs: | ||
- name: 'Job #1' | ||
commands: | ||
- bash -x bg-f > out.txt | ||
- '[ "$(cat out.txt)" = "Hello World!" ]' |