23 lines
366 B
Bash
Executable File
23 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "updating dependencies"
|
|
bundle config build.nokogiri --use-system-libraries
|
|
bundle install --path vendor/bundle
|
|
|
|
if [ -z $SKIP_TESTS ]; then
|
|
echo "running rspec tests"
|
|
bundle exec rspec
|
|
|
|
if [ "$?" = "0" ]; then
|
|
echo "tests completed"
|
|
else
|
|
echo "tests failed."
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "skipping tests"
|
|
fi
|
|
|
|
echo "build complete"
|
|
|