-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
72 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Feature: Vendoring | ||
|
||
Background: | ||
Given I'm in project dir | ||
|
||
|
||
Scenario: Ignore vendored Oyafiles | ||
Given file ./Oyafile containing | ||
""" | ||
Project: project | ||
all: echo "main" | ||
""" | ||
And file ./.oya/vendor/github.com/test/foo@v1.0.0/Oyafile containing | ||
""" | ||
all: echo "vendored" | ||
""" | ||
When I run "oya run all", awaiting its exit | ||
Then the command succeeds | ||
And the command outputs | ||
""" | ||
main | ||
""" | ||
|
||
Scenario: Import tasks from vendored packs | ||
Given file ./Oyafile containing | ||
""" | ||
Project: project | ||
Import: | ||
foo: github.com/test/foo | ||
""" | ||
And file ./.oya/vendor/github.com/test/foo/Oyafile containing | ||
""" | ||
all: | | ||
foo=4 | ||
if [ $$foo -ge 3 ]; then | ||
touch OK | ||
fi | ||
echo "Done" | ||
""" | ||
When I run "oya run foo.all", awaiting its exit | ||
Then the command succeeds | ||
And the command outputs | ||
""" | ||
Done | ||
""" | ||
And file ./OK exists |