Skip to content

Commit 3b91c51

Browse files
author
Kimmo Lehto
committed
Fix packaging
1 parent 875673e commit 3b91c51

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.travis/test.sh

+21-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,34 @@ ruby -Ilib bin/rubyc bin/rubyc \
1717
--tmpdir=${TEMP_DIR} \
1818
--clean-tmpdir \
1919
--ignore-file=.git \
20+
--ignore-file=.gitignore \
21+
--ignore-file=.gitmodules \
22+
--ignore-file=CHANGELOG.md \
23+
--ignore-file=ruby.patch \
2024
--ignore-file=.travis.yml \
21-
--ignore-file=.travis/deploy.sh \
25+
--ignore-file=.travis/test.sh \
2226
--ignore-file=.travis/install_deps.sh \
2327
-o rubyc
2428

2529
strip rubyc || true
2630

27-
./rubyc --version
31+
RUBY_VERSION=`./rubyc --ruby-version`
32+
RUBYC_VERSION=`./rubyc --version`
33+
34+
echo "------------------------------------"
35+
echo "Ruby version: $RUBY_VERSION"
36+
echo "Rubyc version: $RUBYC_VERSION"
37+
echo "------------------------------------"
2838

2939
bundle exec rake test
3040

3141
gzip rubyc
32-
mv rubyc rubyc-${TRAVIS_TAG}-${TRAVIS_OS_NAME}-amd64.gz
42+
43+
if [ "$TRAVIS_TAG" = "" ]; then
44+
VERSION="${RUBY_VERSION}-${RUBYC_VERSION}"
45+
else
46+
VERSION="${TRAVIS_TAG}"
47+
fi
48+
49+
mv rubyc.gz rubyc-${VERSION}-${TRAVIS_OS_NAME}-amd64.gz
50+
ls -al rubyc*gz

0 commit comments

Comments
 (0)