Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
enr committed Aug 5, 2024
1 parent 81cab40 commit 217fe51
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/build/
/tmp/
*.bak

/.vscode/
2 changes: 1 addition & 1 deletion examples/Runpfile-await-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ units:
db:
description: Database
container:
image: postgres:alpine
image: postgres:16-alpine
ports:
- "5432:5432"
env:
Expand Down
13 changes: 11 additions & 2 deletions examples/Runpfile-infinite.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
name: Test Runpfile
description: This is Runpfile
units:
nix:
description: infinite nix
nix-2:
description: infinite nix sleeping 2 secs
preconditions:
os:
inclusions:
- linux
- darwin
host:
command: ./infinite.sh
nix-5:
description: infinite nix sleeping 5 secs
preconditions:
os:
inclusions:
- linux
- darwin
host:
command: ./infinite.sh 5
win:
description: infinite win
preconditions:
Expand Down
7 changes: 5 additions & 2 deletions examples/infinite.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

seconds=${1:-2}

while :
do
echo -n "infinite..."
echo -n "infinite ${seconds}: "
date
pwd
sleep 2
sleep "$seconds"
done

0 comments on commit 217fe51

Please sign in to comment.