Skip to content

Commit

Permalink
Merge pull request #1 from compose/compose_compose_4554
Browse files Browse the repository at this point in the history
Push to artifactory
  • Loading branch information
John Nason authored and GitHub Enterprise committed Jan 5, 2018
2 parents 2f19451 + e9524a9 commit 93b6911
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ before_script:
- psql -c 'create database mosql;' -U postgres
env:
- MONGOSQL_TEST_SQL=postgres://localhost/mosql

deploy:
provider: script
script: ./publish.sh
skip_cleanup: true
on:
branch: master
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
source 'https://rubygems.org'

gemspec
source 'https://composeci%40us.ibm.com:AKCp2WXqy3gyVDrVfed8rNGkeTKCmogxMkxUviHvscKWByChTUyeP1RAb46jr3WNdxhDqq2vT@na.artifactory.swg-devops.com/artifactory/api/gems/compose-gems-local/' do
gem 'mongoriver', '~> 0.5'
end

gemspec
10 changes: 10 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
rm -rf pkg

echo '~~~ Build the gem'
bundle install
bundle exec rake install

echo '+++ Upload to artifactory'
curl -H "X-JFrog-Art-Api:$ARTIFACTORY_SECRET" -X PUT "https://na.artifactory.swg-devops.com/artifactory/compose-gems-local/gems/" -T $(find pkg -name \*.gem -print | tail -n 1)

0 comments on commit 93b6911

Please sign in to comment.