httpx/test/support/ci/build.sh
2018-02-24 20:18:06 +00:00

21 lines
426 B
Bash
Executable File

#!/bin/sh
apk --update add g++ make git bash
gem install bundler -v="1.16.1" --no-doc --conservative
cd /home && touch Gemfile.lock && \
rm Gemfile.lock && \
bundle install && \
bundle exec rake test:ci
RET=$?
RUBY_VERSION=`ruby -e 'puts RUBY_VERSION'`
if [[ ${RUBY_VERSION:0:3} = "2.5" ]]; then
bundle exec rake website_rdoc && \
cd www && bundle install && \
bundle exec jekyll build -d public
fi
exit $RET