-
Notifications
You must be signed in to change notification settings - Fork 1
/
backstage.tasks
34 lines (28 loc) · 1013 Bytes
/
backstage.tasks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[init]
# Initialize the Python project.
setupinit init
[check]
# Get the project version and latest build information.
buildver check
[test]
# Run tests.
python -m unittest discover -f -s tests -t .
[release]
# Build then release a new version of the project.
# Note: you can extend this command in the CLI to set the next version.
# Example: backstage release then 3.0.0
# Example: backstage release then +maj
rustic release
[gitinit]
# Initialize a new Git repository then create a new connection to the remote repository.
# Note: the user is prompted to submit the 'origin'.
git init
python -c 'import subrun; subrun.run("git remote add origin {}".format(input("Origin: ")))'
[gitcommit]
# Save your changes to the local repository.
# Note: the user is prompted to submit a commit message.
git add .
python -c 'import subrun; subrun.run("git commit -m \"{}\"".format(input("Commit message: ")))'
[gitpush]
# Send the commits from your local Git repository to the remote repository
git push origin master