File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ language: scala
3
3
jdk :
4
4
- oraclejdk8
5
5
script :
6
- - sbt test
6
+ - ./build-gitbucket-plugin.sh
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
val Organization = " io.github.gitbucket"
2
2
val ProjectName = " gitbucket-gist-plugin"
3
3
val ProjectVersion = " 4.10.0"
4
+ val GitBucketVersion = Option (System .getProperty(" gitbucket.version" )).getOrElse(" 4.16.0" )
4
5
5
6
lazy val root = (project in file(" ." )).enablePlugins(SbtTwirl )
6
7
@@ -10,9 +11,9 @@ version := ProjectVersion
10
11
scalaVersion := " 2.12.2"
11
12
12
13
libraryDependencies ++= Seq (
13
- " io.github.gitbucket" %% " gitbucket" % " 4.15.0 " % " provided" ,
14
- " com.typesafe.play" %% " twirl-compiler" % " 1.3.0" % " provided" ,
15
- " javax.servlet" % " javax.servlet-api" % " 3.1.0" % " provided"
14
+ " io.github.gitbucket" %% " gitbucket" % GitBucketVersion % " provided" ,
15
+ " com.typesafe.play" %% " twirl-compiler" % " 1.3.0" % " provided" ,
16
+ " javax.servlet" % " javax.servlet-api" % " 3.1.0" % " provided"
16
17
)
17
18
18
19
scalacOptions := Seq (" -deprecation" , " -feature" , " -language:postfixOps" )
You can’t perform that action at this time.
0 commit comments