26 lines
450 B
Bash
Executable File
26 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
GEM_SERVER=https://int.jamkazam.com:9000/gems
|
|
|
|
echo "starting build..."
|
|
./build
|
|
|
|
if [ "$?" = "0" ]; then
|
|
echo "build succeeded"
|
|
echo "publishing gem"
|
|
pushd "target/ruby/jampb"
|
|
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
|
|
|
|
if [ "$?" != "0" ]; then
|
|
echo "publish failed"
|
|
exit 1
|
|
fi
|
|
popd
|
|
echo "done publishing gems"
|
|
else
|
|
echo "build failed"
|
|
exit 1
|
|
fi
|
|
|
|
|