Skip to content

Commit

Permalink
Travis fixes, Docker fixes, Windows template repacking fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbushkov committed May 2, 2018
1 parent 3fbb6fb commit 78b642d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ matrix:
script:
- source "${HOME}/INSTALL/bin/activate"
# TODO(ogaro): Uncomment when we have a final solution for testing on MacOS.
#- pytest grr/client/grr_response_client/ --ignore grr/gui/selenium_tests/ --ignore grr/client/grr_response_client/linux/ --ignore grr/client/grr_response_client/client_actions/linux/
#- pytest grr/client/grr_response_client/ --ignore grr/server/grr_response_server/gui/selenium_tests/ --ignore grr/client/grr_response_client/linux/ --ignore grr/client/grr_response_client/client_actions/linux/
- travis/build_templates.sh
- travis/deploy_to_gcs.sh

Expand Down
12 changes: 8 additions & 4 deletions grr/client/grr_response_client/client_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,16 @@ def RepackTemplates(self,
elif f.endswith(".rpm"):
to_sign.setdefault("rpm", []).append(os.path.join(root, f))
if to_sign.get("windows"):
signer = repacking.TemplateRepacker().GetSigner(
["ClientBuilder Context", "Target:Windows"])
signer = repacking.TemplateRepacker().GetSigner([
"ClientBuilder Context",
"Platform:%s" % platform.system(), "Target:Windows"
])
signer.SignFiles(to_sign.get("windows"))
if to_sign.get("rpm"):
signer = repacking.TemplateRepacker().GetSigner(
["ClientBuilder Context", "Target:Linux", "Target:LinuxRpm"])
signer = repacking.TemplateRepacker().GetSigner([
"ClientBuilder Context",
"Platform:%s" % platform.system(), "Target:Linux", "Target:LinuxRpm"
])
signer.AddSignatureToRPMs(to_sign.get("rpm"))


Expand Down
4 changes: 2 additions & 2 deletions travis/build_local_pyindex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function download_packages() {
rm -rf local_pypi
fi

pip download --dest=local_pypi sdists/grr-response-proto-*.zip
pip download --dest=local_pypi sdists/grr-response-core-*.zip
pip download --find-links=sdists --dest=local_pypi sdists/grr-response-proto-*.zip
pip download --find-links=sdists --dest=local_pypi sdists/grr-response-core-*.zip
pip download --find-links=sdists --dest=local_pypi sdists/grr-response-client-*.zip
pip download --find-links=sdists --dest=local_pypi sdists/grr-api-client-*.zip
pip download --find-links=sdists --dest=local_pypi sdists/grr-response-server-*.zip
Expand Down

0 comments on commit 78b642d

Please sign in to comment.