Skip to content

Commit

Permalink
Fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimmo Lehto committed Jan 7, 2019
1 parent 875673e commit 3b91c51
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,34 @@ ruby -Ilib bin/rubyc bin/rubyc \
--tmpdir=${TEMP_DIR} \
--clean-tmpdir \
--ignore-file=.git \
--ignore-file=.gitignore \
--ignore-file=.gitmodules \
--ignore-file=CHANGELOG.md \
--ignore-file=ruby.patch \
--ignore-file=.travis.yml \
--ignore-file=.travis/deploy.sh \
--ignore-file=.travis/test.sh \
--ignore-file=.travis/install_deps.sh \
-o rubyc

strip rubyc || true

./rubyc --version
RUBY_VERSION=`./rubyc --ruby-version`
RUBYC_VERSION=`./rubyc --version`

echo "------------------------------------"
echo "Ruby version: $RUBY_VERSION"
echo "Rubyc version: $RUBYC_VERSION"
echo "------------------------------------"

bundle exec rake test

gzip rubyc
mv rubyc rubyc-${TRAVIS_TAG}-${TRAVIS_OS_NAME}-amd64.gz

if [ "$TRAVIS_TAG" = "" ]; then
VERSION="${RUBY_VERSION}-${RUBYC_VERSION}"
else
VERSION="${TRAVIS_TAG}"
fi

mv rubyc.gz rubyc-${VERSION}-${TRAVIS_OS_NAME}-amd64.gz
ls -al rubyc*gz

0 comments on commit 3b91c51

Please sign in to comment.