diff --git a/script/ci-build b/script/ci-build index af2844d..1e1c5be 100755 --- a/script/ci-build +++ b/script/ci-build @@ -1,3 +1,14 @@ #!/bin/sh -cp config/database.yml.sqlite3 config/database.yml && /usr/bin/rake db:schema:load && /usr/bin/rake +set -e + +build() { + cp config/database.yml.sqlite3 config/database.yml && /usr/bin/rake db:schema:load && /usr/bin/rake +} + +# build the code in the VCS +build + +# build the release tarball as well +version=$(ruby -Ilib -rnoosfero -e 'puts Noosfero::VERSION') +rm -rf pkg/ && rake -f Rakefile.pkg && cd pkg/noosfero-${version}/ && build -- libgit2 0.21.2