Skip to content

Commit

Permalink
set up deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
fdietze committed May 13, 2015
1 parent 70d6be7 commit 1a4e256
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# sbt
target/

# local stuff
local.*

# tomcat distriubution folder
.distribution
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
sudo: false
language: scala
cache:
directories:
- "$HOME/.sbt"
- "$HOME/.ivy2"
scala:
- 2.11.6
# - 2.10.5
jdk:
- oraclejdk7
# - oraclejdk8
# - openjdk6 # httpmocks do not work with java6
# - openjdk7
script:
# - sbt ++$TRAVIS_SCALA_VERSION clean coverage test
# - sbt ++$TRAVIS_SCALA_VERSION test-integration:test # integration tests need a running neo4j instance
- rm ~/.sbt/boot/scala-*/org.scala-sbt/sbt/*/sbt.components.lock ~/.sbt/boot/sbt.boot.lock
after_success:
# - sbt ++$TRAVIS_SCALA_VERSION coveralls
- test -n "${TRAVIS_TAG}" && test "${TRAVIS_JDK_VERSION}" = 'oraclejdk7' && test "${NEO4J_VERSION}" = '2.2.1' && sbt ++$TRAVIS_SCALA_VERSION publishSigned sonatypeRelease # take fixed combination from build matrix for each scala version and publish
env:
matrix:
# test across multiple versions of Neo4j:
# - NEO4J_VERSION="2.3.0-M01"
- NEO4J_VERSION="2.2.1"
# - NEO4J_VERSION="2.1.7" # does not isolate transactions (same for version 2.1.6)
# - NEO4J_VERSION="2.0.4" # does not support property += {...}
global:
- secure: NoM0IHXcd8yXIGKeQmHFe902ATGKhIRDW5Uln0CB3SjXjygg7t9ysXlL0rz14oXpxVE0jhPrdIlnbtvuVEoupbermx2zQIdweh/om09pqH1xv33tVawPreExIOJ02SZkZ7sos+W5Q1gFsE3HvSdrZuoR3f2nXWV9Z0kQHmuNdIc=
- secure: SExhNxk6rHNDbzRzKLzfWdEY99Ica2XoGR+th/t3XvqsgvtgCVsPA+ts1ZqGEKxiLqHRj/sBSbUAMVn5APFZad+zPrqJ+VGPuTLiC6v+4TYd0QbqikDNUp8BIBnUXcWkenBOw2GEnd/sAapglfM1cXhPuGte+8XVaI+6W7+0tUE=
before_install:
# install Neo4j locally and run with specific jvm:
- wget dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz
- tar -xzvf neo4j-community-$NEO4J_VERSION-unix.tar.gz
- echo "org.neo4j.server.transaction.timeout=6" >> neo4j-community-$NEO4J_VERSION/conf/neo4j-server.properties
#- echo "dbms.security.authorization_enabled=false" >> neo4j-community-$NEO4J_VERSION/conf/neo4j-server.properties
curl --silent -H "Content-Type: application/json" -d "{\"password\":\"testingpw\"}" http://localhost:7474/user/neo4j/password
- JAVA_HOME=$(jdk_switcher home oraclejdk7) neo4j-community-$NEO4J_VERSION/bin/neo4j start
# decrypt secrets
- openssl aes-256-cbc -k "$file_encryption_password" -in credentials.sbt.enc -out
local.credentials.sbt -d
- openssl aes-256-cbc -k "$file_encryption_password" -in secring.gpg.enc -out local.secring.gpg
-d
- openssl aes-256-cbc -k "$file_encryption_password" -in pubring.gpg.enc -out local.pubring.gpg
-d
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import SonatypeKeys._


name := "renesca-magic"

version := "0.1"
Expand All @@ -15,6 +18,12 @@ addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVe
scalacOptions ++= scalacOpts

// publishing
pgpSecretRing := file("local.secring.gpg")

pgpPublicRing := file("local.pubring.gpg")

sonatypeSettings

organization := "com.github.renesca"

pomExtra := {
Expand Down
8 changes: 8 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// publishing
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.2.1")


0 comments on commit 1a4e256

Please sign in to comment.