Skip to content

Commit fcb0b9a

Browse files
Add .travis.yml, make publish-local step manual
1 parent 8e2dd34 commit fcb0b9a

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

.drone.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,11 @@ pipeline:
3737
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test ;sjsSandbox/run"
3838
- ./project/scripts/bootstrapCmdTests
3939

40-
test_community_build:
41-
group: test
42-
image: lampepfl/dotty:2018-12-12
43-
commands:
44-
- cp -R . /tmp/3/ && cd /tmp/3/
45-
- ./project/scripts/sbt community-build/test
46-
4740
test_sbt:
4841
group: test
4942
image: lampepfl/dotty:2018-12-12
5043
commands:
51-
- cp -R . /tmp/4/ && cd /tmp/4/
44+
- cp -R . /tmp/3/ && cd /tmp/3/
5245
- ./project/scripts/sbt sbt-dotty/scripted
5346
when:
5447
# sbt scripted tests are slow and only run on nightly or deployment

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: scala
2+
jdk: oraclejdk8
3+
jobs:
4+
include:
5+
- stage: publish-local
6+
script: sbt community-build/prepare-community-build
7+
- stage: integration-tests
8+
script: sbt "testOnly -- *algebra"
9+
- script: sbt "testOnly -- *betterfiles"
10+
- script: sbt "testOnly -- *scalacheck"
11+
- script: sbt "testOnly -- *ScalaPB"
12+
- script: sbt "testOnly -- *scalatest"
13+
- script: sbt "testOnly -- *scopt"
14+
- script: sbt "testOnly -- *squants"
15+
- script: sbt "testOnly -- *collectionstrawman"
16+
- script: sbt "testOnly -- *scalap"
17+
- script: sbt "testOnly -- *minitest"
18+
- script: sbt "testOnly -- *fastparse"
19+
- script: sbt "testOnly -- *stdLib213"
20+
- script: sbt "testOnly -- *pdbp"
21+
- script: sbt "testOnly -- *sourcecode"

project/Build.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,11 @@ object Build {
10161016
}.dependsOn(compile in Compile).evaluated
10171017
)
10181018

1019-
lazy val `prepare-for-comunity-build` = taskKey[Unit]("Publish local the compiler and the sbt plugin. Also store the versions of the published local artefacts in two files, community-build/{dotty-bootstrapped.version,sbt-dotty.sbt}.")
1019+
lazy val `prepare-community-build` = taskKey[Unit]("Publish local the compiler and the sbt plugin. Also store the versions of the published local artefacts in two files, community-build/{dotty-bootstrapped.version,sbt-dotty.sbt}.")
10201020

10211021
lazy val `community-build` = project.in(file("community-build")).
10221022
settings(
1023-
scalaVersion := scalacVersion,
1024-
`prepare-for-comunity-build` := {
1023+
`prepare-community-build` := {
10251024
(publishLocal in `dotty-sbt-bridge`).value
10261025
(publishLocal in `dotty-interfaces`).value
10271026
(publishLocal in `dotty-compiler-bootstrapped`).value
@@ -1035,8 +1034,7 @@ object Build {
10351034
IO.write(baseDirectory.value / "sbt-dotty.sbt", pluginText)
10361035
IO.write(baseDirectory.value / "dotty-bootstrapped.version", dottyVersion)
10371036
},
1038-
(Test / testOnly) := ((Test / testOnly) dependsOn `prepare-for-comunity-build`).evaluated,
1039-
(Test / test ) := ((Test / test ) dependsOn `prepare-for-comunity-build`).value,
1037+
scalaVersion := scalacVersion,
10401038
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
10411039
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
10421040
)

0 commit comments

Comments
 (0)