Merge lp:~ralsina/tanuki-agent/make-tarball into lp:tanuki-agent

Proposed by Roberto Alsina
Status: Merged
Approved by: Celso Providelo
Approved revision: 132
Merged at revision: 129
Proposed branch: lp:~ralsina/tanuki-agent/make-tarball
Merge into: lp:tanuki-agent
Diff against target: 21 lines (+3/-3)
1 file modified
Makefile (+3/-3)
To merge this branch: bzr merge lp:~ralsina/tanuki-agent/make-tarball
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+275719@code.launchpad.net

Commit message

Configurable filenames for binary tarballs.

Description of the change

Configurable filenames for binary tarballs.

Example:

BINARY_TARBALL_FILEPATH=../spi-bin-`bzr revno`.tgz make binary

To post a comment you must log in.
131. By Roberto Alsina

no source tarball

132. By Roberto Alsina

change default tarball name

Revision history for this message
Celso Providelo (cprov) wrote :

Thanks ROberto, let's continue with the versioned tarball journey until we can test a series of releases in E2E.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2015-10-22 17:54:36 +0000
3+++ Makefile 2015-10-26 17:24:40 +0000
4@@ -1,4 +1,5 @@
5 VERSION_FILENAME = "version_info.py"
6+BINARY_TARBALL_FILEPATH ?= $(shell echo "agent-`bzr revno`.tar.gz")
7 REVNO ?= "-1"
8
9 env:
10@@ -47,9 +48,8 @@
11 cp LICENSE.txt agent-binaries
12 mkdir agent-binaries/requests
13 cp env/lib/python3.4/site-packages/requests/cacert.pem agent-binaries/requests/cacert.pem
14- tar czvf agent.tar.gz agent-binaries
15- # xxx needed until run_e2e and daily builder are updated
16- cp -R agent-binaries tanuki-agent-binaries
17+ rm -rf $(BINARY_TARBALL_FILEPATH)
18+ tar -czf $(BINARY_TARBALL_FILEPATH) agent-binaries
19
20 test_tarball:
21 tar czvf test_tarball.tar.gz -C rpi2-sample-provkit/test_tarball_content test

Subscribers

People subscribed via source and target branches

to all changes: