File: travis-deploy.sh

package info (click to toggle)
snappy-java 1.1.10.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,292 kB
  • sloc: java: 5,739; sh: 2,506; xml: 431; cpp: 295; makefile: 199
file content (15 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -ev

VERSION=`perl -npe "s/version in ThisBuild\s+:=\s+\"(.*)\"/\1/" version.sbt | sed -e "/^$/d"`

# Deploy a snapshot version only for master branch and jdk8
if [[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]]; then 
  if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$VERSION" == *SNAPSHOT ]]; then
    ./sbt "; test; publish";
  else
    ./sbt test;
  fi;
else
  ./sbt test;
fi;