Skip to content

Commit

Permalink
Automatically publish tagged releases to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
ilopmar committed Nov 7, 2016
1 parent e22eb53 commit 0dd0f17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ jdk:
- openjdk7
- oraclejdk8

env:
global:
- GIT_NAME="Iván López"
- GIT_EMAIL="[email protected]"
- secure: qdvGtJFbtvTJPZ9HbBC4DtPGLAeWQq5A1gX7u4xxfPBNw/Mkd7Z0/OrWiMuNMccDvqhiPAbauZRb3ZSE/KOWhqSKg6EAMeQpBgGUOrjXNBH6x0m2BthFkQhEVWrDVqGx+AuEbm7kRsNw6ec+kJ6oaBPjnHOfbPnGVro+4sGWSck=
- secure: ZYo6fjlQNV1Oyc+fcINeISvR3pUAQG/V9I28v0xs2hjDiAug4gPnaQgxhmpa1SfRo5vwk+Oi+eNG22K2ePmUqARz2K5REahEPvocRZwrEow7pvJGvsLwiDcJk/o20fLPcUJlxgAyJeOQYR+exg35TlfHQ0ZWPVj07HO/A+1KTeM=

addons:
postgresql: "9.4"

Expand All @@ -13,9 +20,10 @@ before_script:
- psql -c 'create database pg_extensions_test;' -U postgres
- psql -c "create user pg_extensions with password 'pg_extensions';" -U postgres
- psql -c "grant all privileges on database pg_extensions_test to pg_extensions;" -U postgres
- rm -rf target

script:
- ./gradlew clean build
- ./travis-build.sh

notifications:
email:
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ task wrapper(type: Wrapper) {

bintray {
pkg {
userOrg = 'kaleidos' // If you want to publish to an organization
userOrg = 'kaleidos'
name = 'postgresql-extensions'
issueTrackerUrl = 'https://github.com/kaleidosnet/grails-grails-postgresql-extensions/issues'
vcsUrl = 'https://github.com/kaleidosnet/grails-grails-postgresql-extensions/issues'
}
}

grailsPublish {
user = 'kaleidos'
key = 'key'
user = System.getenv("BINTRAY_USER") ?: project.bintrayUser
key = System.getenv("BINTRAY_KEY") ?: project.bintrayKey
userOrg = 'kaleidos'
repo = 'plugins'

Expand All @@ -133,5 +133,5 @@ grailsPublish {
vcsUrl = 'https://github.com/kaleidos/grails-postgresql-extensions.git'
title = 'PostgreSQL Extensions'
desc = 'This is a grails plugin that provides hibernate user types to use Postgresql native types. It also provides new criterias to query this new native types.'
developers = [kaleidos: 'Kaleidos']
developers = [ivan: 'Iván López']
}

0 comments on commit 0dd0f17

Please sign in to comment.