Commit 003273e0a5e43dd6c3211ecf4966b1de46e7da89
1 parent
13d40bdb
Exists in
master
and in
28 other branches
Include release tarball in CI build
This way a successful build of the git contents will also try to build inside the contents of the release tarball. This way we make sure the release tarball contains everything it should.
Showing
1 changed file
with
12 additions
and
1 deletions
Show diff stats
script/ci-build
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -cp config/database.yml.sqlite3 config/database.yml && /usr/bin/rake db:schema:load && /usr/bin/rake | |
3 | +set -e | |
4 | + | |
5 | +build() { | |
6 | + cp config/database.yml.sqlite3 config/database.yml && /usr/bin/rake db:schema:load && /usr/bin/rake | |
7 | +} | |
8 | + | |
9 | +# build the code in the VCS | |
10 | +build | |
11 | + | |
12 | +# build the release tarball as well | |
13 | +version=$(ruby -Ilib -rnoosfero -e 'puts Noosfero::VERSION') | |
14 | +rm -rf pkg/ && rake -f Rakefile.pkg && cd pkg/noosfero-${version}/ && build | ... | ... |