Skip to content

Commit 3728483

Browse files
committed
Add rock publishing
1 parent 7a57961 commit 3728483

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ git:
1414
env:
1515
global:
1616
- PRODUCT=tarantool-http
17+
- ROCK_NAME=http
1718

1819
_test: &test
1920
before_install:
@@ -91,6 +92,21 @@ jobs:
9192
env: OS=debian DIST=jessie
9293
- <<: *packpack
9394
env: OS=debian DIST=stretch
95+
- stage: deploy
96+
script: skip
97+
deploy:
98+
- provider: script
99+
script: curl --fail -X PUT -F rockspec=@$ROCK_NAME-scm-1.rockspec
100+
https://$ROCKS_USERNAME:$ROCKS_PASSWORD@$ROCKS_SERVER
101+
- on:
102+
tags: true
103+
provider: script
104+
script: cat $ROCK_NAME-scm-1.rockspec |
105+
sed -E
106+
-e "s/branch = '.+'/tag = '$TRAVIS_TAG'/g"
107+
-e "s/version = '.+'/version = '$TRAVIS_TAG-1'/g" |
108+
curl --fail -X PUT -F "rockspec=@-;filename=$ROCK_NAME-$TRAVIS_TAG-1.rockspec"
109+
https://$ROCKS_USERNAME:$ROCKS_PASSWORD@$ROCKS_SERVER
94110

95111
notifications:
96112
email:

0 commit comments

Comments
 (0)