diff --git a/.travis/test.sh b/.travis/test.sh index 331925da9..eb10b36fc 100755 --- a/.travis/test.sh +++ b/.travis/test.sh @@ -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