Skip to content

Commit e187588

Browse files
juanpedromorenoraulraja
authored andcommitted
JP - Provides travis conf and deploy settings files (#2)
* Provides travis conf and deploy settings files * Upgrades to the latest version sbt-exercise plugin
1 parent a6b129c commit e187588

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: scala
2+
scala:
3+
- 2.11.8
4+
jdk:
5+
- oraclejdk8
6+
script:
7+
- sbt test
8+
after_success:
9+
- bash deploy.sh

deploy.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
function decipherKeys {
4+
echo $KEYS_PASSPHRASE | gpg --passphrase-fd 0 keys.tar.gpg
5+
tar xfv keys.tar
6+
}
7+
8+
function publish {
9+
sbt compile publishSigned
10+
}
11+
12+
function release {
13+
decipherKeys
14+
publish
15+
}
16+
17+
if [[ $TRAVIS_BRANCH == 'master' ]]; then
18+
echo "Master branch, releasing..."
19+
release
20+
else
21+
echo "Not in master branch, skipping release"
22+
fi
23+

keys.tar.gpg

2.81 KB
Binary file not shown.

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.1.1", "0.13", "2.10")
1+
addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.2.1-SNAPSHOT", "0.13", "2.10")
22
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

0 commit comments

Comments
 (0)