-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from finagle/vk/autoreleases
Enable Autoreleases
- Loading branch information
Showing
10 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ target | |
.cache | ||
logging.properties | ||
.DS_Store | ||
local.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,20 @@ | ||
dist: trusty | ||
language: scala | ||
|
||
scala: | ||
- 2.11.12 | ||
- 2.12.4 | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
- oraclejdk8 | ||
addons: | ||
postgresql: "9.5" | ||
|
||
postgresql: '9.5' | ||
services: | ||
- postgresql | ||
|
||
sbt_args: -J-Xmx4096M | ||
|
||
- postgresql | ||
sbt_args: "-J-Xmx4096M" | ||
env: | ||
matrix: | ||
- PG_HOST_PORT=127.0.0.1:5432 PG_USER=postgres PG_DBNAME=finagle_postgres_test | ||
|
||
global: | ||
secure: BlDBBTkjweJybkNnWvLCv8GHhoJXuTvdOmehPwppCOjHKM8z9WDgy5RabrZew/Iptlcnz7Gn4dPrQDtsWPTSY7e791gRcdGPyMX1qR5Rk9YAVnhU2ndV/Udxlabn05CFaciKtQXMF9L2oX5FbqiW2D5J2w0lKVHHr95nGZXRH1g= | ||
before_script: | ||
- createdb -U postgres finagle_postgres_test | ||
- psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS hstore" finagle_postgres_test | ||
- psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS citext" finagle_postgres_test | ||
|
||
- createdb -U postgres finagle_postgres_test | ||
- psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS hstore" finagle_postgres_test | ||
- psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS citext" finagle_postgres_test | ||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION coverage test | ||
|
||
after_success: | ||
- sbt coveralls | ||
|
||
- "./build/build.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
SBT_CMD="sbt +coverage +test" | ||
|
||
if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then | ||
SBT_CMD+=" +coverageOff +publish" | ||
openssl aes-256-cbc -pass env:ENCRYPTION_PASSWORD -in ./build/secring.gpg.enc -out local.secring.gpg -d | ||
openssl aes-256-cbc -pass env:ENCRYPTION_PASSWORD -in ./build/pubring.gpg.enc -out local.pubring.gpg -d | ||
openssl aes-256-cbc -pass env:ENCRYPTION_PASSWORD -in ./build/credentials.sbt.enc -out local.credentials.sbt -d | ||
openssl aes-256-cbc -pass env:ENCRYPTION_PASSWORD -in ./build/deploy_key.pem.enc -out local.deploy_key.pem -d | ||
|
||
if [[ "${TRAVIS_BRANCH}" == "master" && $(cat version.sbt) != *"SNAPSHOT"* ]]; then | ||
eval "$(ssh-agent -s)" | ||
chmod 600 local.deploy_key.pem | ||
ssh-add local.deploy_key.pem | ||
git config --global user.name "Finch CI" | ||
git config --global user.email "ci@kostyukov.net" | ||
git remote set-url origin git@github.com:finagle/finagle-postgres.git | ||
git checkout master || git checkout -b master | ||
git reset --hard origin/master | ||
|
||
echo 'Performing a release' | ||
sbt 'release cross with-defaults' | ||
elif [[ "${TRAVIS_BRANCH}" == "master" ]]; then | ||
echo 'Master build' | ||
${SBT_CMD} | ||
else | ||
echo 'Branch build' | ||
printf 'version in ThisBuild := "%s-SNAPSHOT"' "${TRAVIS_BRANCH}" > version.sbt | ||
${SBT_CMD} | ||
fi | ||
else | ||
echo 'PR build' | ||
${SBT_CMD} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version in ThisBuild := "0.8.3-SNAPSHOT" |