Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change tests syntax to key: value, change cwd to working_directory
- Loading branch information
Dawid Wolski
committed
Sep 14, 2018
1 parent
73d82cd
commit 8227e4c
Showing
3 changed files
with
92 additions
and
28 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
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
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 |
---|---|---|
@@ -1,40 +1,85 @@ | ||
--- | ||
- name: Deploy in check mode with cwd | ||
sqitch: command=deploy cwd={{ output_dir }} plan_file=sqitch.plan target=anstest verify=true to_change=types | ||
- name: Deploy in check mode with working_directory | ||
sqitch: | ||
command: deploy | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
verify: true | ||
to_change: types | ||
check_mode: yes | ||
|
||
- name: Deploy in check mode without cwd | ||
sqitch: command=deploy plan_file=sqitch.plan target=anstest verify=true to_change=types | ||
- name: Deploy in check mode without working_directory | ||
sqitch: | ||
command: deploy | ||
plan_file: sqitch.plan | ||
target: anstest | ||
verify: true | ||
to_change: types | ||
check_mode: yes | ||
|
||
- name: Deploy to change | ||
sqitch: command=deploy cwd={{ output_dir }} plan_file=sqitch.plan target=anstest verify=true to_change=types | ||
sqitch: | ||
command: deploy | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
verify: true | ||
to_change: types | ||
|
||
- name: Rebase | ||
sqitch: | ||
command: rebase | ||
cwd: "{{ output_dir }}" | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
verify: true | ||
|
||
- name: Revert to change | ||
sqitch: command=revert cwd={{ output_dir }} plan_file=sqitch.plan target=anstest to_change=schemas | ||
sqitch: | ||
command: revert | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
to_change: schemas | ||
|
||
- name: Deploy whole plan | ||
sqitch: command=deploy cwd={{ output_dir }} plan_file=sqitch.plan target=anstest | ||
sqitch: | ||
command: deploy | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
|
||
- name: Verify | ||
sqitch: command=verify cwd={{ output_dir }} plan_file=sqitch.plan target=anstest from_change=types to_change=tests | ||
sqitch: | ||
command: verify | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
from_change: types | ||
to_change: tests | ||
|
||
- name: Check status | ||
sqitch: command=status cwd={{ output_dir }} plan_file=sqitch.plan target=anstest | ||
sqitch: | ||
command: status | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
|
||
- name: Revert whole plan to change | ||
sqitch: command=revert cwd={{ output_dir }} plan_file=sqitch.plan target=anstest to_change=schemas | ||
sqitch: | ||
command: revert | ||
working_directory: "{{ output_dir }}" | ||
plan_file: sqitch.plan | ||
target: anstest | ||
to_change: schemas | ||
|
||
- name: Destroy DB | ||
postgresql_db: name=anstest state=absent | ||
postgresql_db: | ||
name: anstest | ||
state: absent | ||
|
||
- name: Remove resources | ||
file: path={{ output_dir }} state=absent | ||
file: | ||
path: "{{ output_dir }}" | ||
state: absent |