Skip to content

Commit ab45a10

Browse files
travis-ci: Publish rockspec automatically
1 parent 04c7cdb commit ab45a10

File tree

4 files changed

+17
-61
lines changed

4 files changed

+17
-61
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ stages:
2020
env:
2121
global:
2222
- PRODUCT=tarantool-queue
23+
- ROCK_NAME=queue
2324

2425
before_script:
2526
- git describe --long
@@ -56,6 +57,22 @@ jobs:
5657
- env: VERSION=2_2
5758
script: ./test.sh
5859

60+
- stage: deploy
61+
name: Publish rockspecs
62+
script: skip
63+
deploy:
64+
- provider: script
65+
script: curl --fail -X PUT -F rockspec=@$ROCK_NAME-scm-1.rockspec
66+
https://$ROCKS_USERNAME:[email protected]
67+
- on:
68+
tags: true
69+
provider: script
70+
script: cat $ROCK_NAME-scm-1.rockspec |
71+
sed -E
72+
-e "s/branch = '.+'/tag = '$TRAVIS_TAG'/g"
73+
-e "s/version = '.+'/version = '$TRAVIS_TAG-1'/g" |
74+
curl --fail -X PUT -F "rockspec=@-;filename=$ROCK_NAME-$TRAVIS_TAG-1.rockspec"
75+
https://$ROCKS_USERNAME:[email protected]
5976
- <<: *packpack
6077
env: OS=el DIST=6
6178
- <<: *packpack
File renamed without changes.

rockspecs/queue-1.0.2-1.rockspec

Lines changed: 0 additions & 30 deletions
This file was deleted.

rockspecs/queue-1.0.4-1.rockspec

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)