forked from zold-io/zold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
executable file
·35 lines (35 loc) · 942 Bytes
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
assets:
rubygems.yml: yegor256/home#assets/rubygems.yml
install: |
export GEM_HOME=~/.ruby
export GEM_PATH=$GEM_HOME:$GEM_PATH
sudo apt-get -y update
sudo apt-get -y install libcurl4-openssl-dev
sudo gem install pdd -v 0.20.5
release:
script: |-
export RUBYOPT="-W0"
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
# gem build zold.gemspec
# gem install --local zold-0.0.0.gem
# zold --version | grep -vq '0.0.0' && exit -1
# zold remote update
sed -i "s/0\.0\.0/${tag}/g" lib/zold/version.rb
bundle install --no-color
rake --quiet
git add lib/zold/version.rb
git commit -m "version set to ${tag}"
gem build zold.gemspec
chmod 0600 ../rubygems.yml
gem push *.gem --config-file ../rubygems.yml
architect:
- yegor256
merge:
script: |-
bundle install
rake --quiet
pdd -f /dev/null -v
deploy:
script: |-
echo "There is nothing to deploy"
exit -1