Skip to content

Commit 8f2174d

Browse files
committed
Add make target for updating secrets
1 parent 8bce20a commit 8f2174d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ gem install travis --no-rdoc --no-ri
125125
Add the encrypted secrets files to the repository and Travis CI:
126126

127127
```sh
128-
tar cvf secrets.tar ci_secrets/
129-
travis encrypt-file secrets.tar --add --force
130-
git add secrets.tar.enc .travis.yml
131-
git commit -m 'Update secret archive'
132-
git push
128+
make update-secrets
133129
```
134130

135131
Note that the [Travis CI documentation](https://docs.travis-ci.com/user/encrypting-files/#Caveat) warns that this might not work on Windows.

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ lint:
1515
vulture . --min-confidence 100
1616
yapf --diff --recursive src/ tests/ ci/
1717

18+
.PHONY: fix-lint
1819
fix-lint:
1920
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables .
2021
yapf --in-place --recursive .
2122
isort --recursive --apply
23+
24+
.PHONY: update-secrets
25+
update-secrets:
26+
tar cvf secrets.tar ci_secrets/
27+
travis encrypt-file secrets.tar --add --force
28+
git add secrets.tar.enc .travis.yml
29+
git commit -m 'Update secret archive [skip ci]'
30+
git push

0 commit comments

Comments
 (0)