Skip to content

Commit 7e695c5

Browse files
authored
Merge pull request #5 from gitbucket/build-for-gitbucket-master
Build for master branch of GitBucket
2 parents f81343b + 67d6888 commit 7e695c5

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.travis.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ language: scala
33
jdk:
44
- oraclejdk8
55
script:
6-
- sbt test
7-
addons:
8-
apt:
9-
packages:
10-
- oracle-java8-installer
6+
- ./build-gitbucket-plugin.sh

build-gitbucket-plugin.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
rm -rf gitbucket
3+
git clone https://github.com/gitbucket/gitbucket.git
4+
cd gitbucket
5+
6+
GITBUCKET_VERSION=`cat build.sbt | grep "GitBucketVersion =" | sed 's/^.*"\(.*\)".*$/\1/'`
7+
echo "GITBUCKET_VERSION: $GITBUCKET_VERSION"
8+
sbt publish-local
9+
10+
cd ..
11+
sbt -Dgitbucket.version=$GITBUCKET_VERSION test

build.sbt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
val Organization = "io.github.gitbucket"
22
val ProjectName = "gitbucket-emoji-plugin"
33
val ProjectVersion = "4.5.0-SNAPSHOT"
4+
val GitBucketVersion = Option(System.getProperty("gitbucket.version")).getOrElse("4.16.0")
45

56
organization := Organization
67
name := ProjectName
78
version := ProjectVersion
89
scalaVersion := "2.12.2"
910

1011
libraryDependencies ++= Seq(
11-
"io.github.gitbucket" %% "gitbucket" % "4.12.0" % "provided",
12-
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
12+
"io.github.gitbucket" %% "gitbucket" % GitBucketVersion % "provided",
13+
"javax.servlet" % "javax.servlet-api" % "3.1.0" % "provided"
1314
)
1415

1516
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps")

0 commit comments

Comments
 (0)