-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
06fbb50
commit 30d7c9e
Showing
10 changed files
with
80 additions
and
74 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
=========================== | ||
Declaring Task Dependencies | ||
=========================== | ||
|
||
Uranium provides a declarative task dependency system | ||
through task_requires:: | ||
|
||
from uranium import task_requires | ||
|
||
def main(build): | ||
print("main was") | ||
|
||
# this ensures main is run first, during | ||
# an execution. | ||
@task_requires("main") | ||
def test(build): | ||
print("test was run") | ||
|
||
# a list can be passed in. In that case, | ||
# each dependency is executed in the order | ||
# it appears in the list. | ||
# | ||
# notice that a string with the task name, | ||
# or the task itself can be passed in. | ||
@task_requires(["main", test]) | ||
def build_docs(build): | ||
print("main was") |
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ Contents: | |
examples | ||
cookbook/cookbook | ||
config | ||
dependency | ||
envs | ||
executables | ||
history | ||
|
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 was deleted.
Oops, something went wrong.
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,11 +1,11 @@ | ||
test: | ||
./uranium/scripts/uranium_standalone --uranium-dir=. test_no_deps ${ARGS} | ||
|
||
test_full: | ||
./uranium/scripts/uranium_standalone --uranium-dir=. test ${ARGS} -v | ||
|
||
build: | ||
./uranium/scripts/uranium_standalone --uranium-dir=. | ||
|
||
distribute: | ||
./uranium/scripts/uranium_standalone --uranium-dir=. distribute | ||
|
||
docs: | ||
./uranium/scripts/uranium_standalone --uranium-dir=. build_docs |
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