-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
docker: | ||
image: yegor256/rultor-image:1.9.0 | ||
assets: | ||
rubygems.yml: yegor256/home#assets/rubygems.yml | ||
s3cfg: yegor256/home#assets/s3cfg | ||
install: | | ||
export GEM_HOME=~/.ruby | ||
export GEM_PATH=$GEM_HOME:$GEM_PATH | ||
sudo gem install pdd -v 0.20.5 | ||
sudo gem install xcop -v 0.6 | ||
bundle install | ||
pdd -f /dev/null | ||
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile" | ||
release: | ||
script: |- | ||
pdd -f /dev/null | ||
LC_ALL=US-ASCII bundle exec rake | ||
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1 | ||
bundle exec rake | ||
rm -rf *.gem | ||
sed -i "s/1\.0\.snapshot/${tag}/g" lib/pdd/version.rb | ||
sed -i "s/0\.0\.0/${tag}/g" lib/pdd/version.rb | ||
git add lib/pdd/version.rb | ||
git commit -m "version set to ${tag}" | ||
gem build pdd.gemspec | ||
chmod 0600 ../rubygems.yml | ||
gem push *.gem --config-file ../rubygems.yml | ||
pdd --source=$(pwd) --verbose --file=pdd.xml -e=test/** -e=features/** -e=coverage/**/* -e=README.md | ||
s3cmd --no-progress put pdd.xml --config=../s3cfg s3://pdd.teamed.io/pdd.xml | ||
s3cmd --no-progress put assets/puzzles.xsd --acl-public --config=../s3cfg s3://pdd-xsd.teamed.io/${tag}.xsd | ||
s3cmd --no-progress put assets/puzzles.xsl --acl-public --config=../s3cfg s3://pdd-xsl.teamed.io/${tag}.xsl | ||
merge: | ||
script: |- | ||
pdd -f /dev/null | ||
LC_ALL=US-ASCII bundle exec rake | ||
deploy: | ||
script: |- | ||
echo 'Nothing to deploy' | ||
echo "There is nothing to deploy" | ||
exit -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters