24 lines
395 B
Bash
Executable File
24 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "starting build..."
|
|
./build
|
|
|
|
if [ "$?" = "0" ]; then
|
|
echo "build succeeded"
|
|
echo "publishing gem"
|
|
pushd "target/ruby_package"
|
|
curl -f -T *.gem http://localhost:9000/gems
|
|
|
|
if [ "$?" != "0" ]; then
|
|
"publish failed"
|
|
exit 1
|
|
fi
|
|
popd
|
|
echo "done publishing gems"
|
|
else
|
|
echo "build failed"
|
|
exit 1
|
|
fi
|
|
|
|
|