Skip to content

Commit 181b757

Browse files
authored
Merge pull request #165 from SethTisue/travis
add a Travis build
2 parents 9b8c990 + ff563b6 commit 181b757

File tree

8 files changed

+36
-15
lines changed

8 files changed

+36
-15
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# we need rpmbuild but it's unlikely to be whitelisted, according to
2+
# https://github.com/travis-ci/apt-package-whitelist/pull/1700
3+
sudo: required
4+
before_install:
5+
- sudo apt-get -qq update
6+
- sudo apt-get install -y rpm
7+
8+
language: scala
9+
jdk: oraclejdk8
10+
11+
script:
12+
- sbt -Dproject.version=2.12.0 s3Upload::mappings
13+
14+
cache:
15+
directories:
16+
- $HOME/.ivy2
17+
- $HOME/.sbt/boot
18+
- $HOME/.sbt/launchers
19+
before_cache:
20+
- find $HOME/.sbt -name "*.lock" | xargs rm
21+
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ into a Scala `$version` distribution (zip, tar.gz, deb, rpm, and msi).
55

66
To build a distribution, run:
77

8-
* `universal:package-bin` - Builds the universal zip installer
9-
* `universal-docs:package-bin` - Builds the universal documentation zip
10-
* `debian:package-bin` - Builds the Debian DEB file. *requires dpkg-deb*
11-
* `rpm:package-bin` - Builds the yum RPM file. *requires rpmbuild*
12-
* `windows:package-bin` - Builds the Windows MSI. *requires WiX 3.6*
8+
* `universal:packageBin` - Builds the universal zip installer
9+
* `universal-docs:packageBin` - Builds the universal documentation zip
10+
* `debian:packageBin` - Builds the Debian DEB file. *requires dpkg-deb*
11+
* `rpm:packageBin` - Builds the yum RPM file. *requires rpmbuild*
12+
* `windows:packageBin` - Builds the Windows MSI. *requires WiX 3.6*
1313

14-
Alternatively, the `s3-upload` task's mappings are configured based on the platform
14+
Alternatively, the `s3Upload` task's mappings are configured based on the platform
1515
the installer is running on. On Windows, it builds the MSI; on another platform,
1616
it'll create and upload the other packages in the above list. (Use `s3Upload::mappings` for a dry-run.)
1717

1818
The version of Scala to package is derived from the most recent git tag,
1919
or you can specify it using `-Dproject.version`.
2020

21-
This packager only works for Scala 2.11+ releases (starting with M8),
21+
This packager only works for Scala 2.11+ releases,
2222
as earlier ones did not publish the `scala-dist` artifact to maven.
2323

2424
Due to limited resources, the native packages are quite rudimentary.
@@ -44,7 +44,7 @@ The specification also used to be in this repo -- it is now a part of the main r
4444

4545
## Contributing ##
4646
Please read the [Scala Pull Request Policy](https://github.com/scala/scala/wiki/Pull-Request-Policy)
47-
and sign the [CLA](http://typesafe.com/contribute/cla/scala).
47+
and sign the [CLA](http://www.lightbend.com/contribute/cla/scala).
4848

4949
The branching structure mimics that of [scala/scala](https://github.com/scala/scala):
5050
branches for 2.11.x, 2.12.x, etc.

project/ScalaDist.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object ScalaDist {
5050
useNativeZip ++ // use native zip to preserve +x permission on scripts
5151
Seq(
5252
name := "scala",
53-
maintainer := "LAMP/EPFL and Typesafe, Inc. <scala-internals@googlegroups.com>",
53+
maintainer := "LAMP/EPFL and Lightbend, Inc. <scala-internals@googlegroups.com>",
5454
packageSummary := "Scala Programming Language Distribution", // this will be spliced into the middle of a sentence --> no period (it also determines sort order, so, no "The" in front)
5555
packageDescription := "Have the best of both worlds. Construct elegant class hierarchies for maximum code reuse and extensibility, implement their behavior using higher-order functions. Or anything in-between.",
5656
crossPaths := false,

project/Unix.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object Unix {
6666

6767
// RPM Specific
6868
name in Rpm := "scala",
69-
rpmVendor := "typesafe",
69+
rpmVendor := "lightbend",
7070
rpmUrl := Some("http://github.com/scala/scala"),
7171
rpmLicense := Some("BSD"),
7272
rpmGroup := Some("Development/Languages"),

project/Wix.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ object Wix {
1919
// wixProductComments := "Scala Programming language for use in Windows.",
2020

2121
wixProductConfig := makeProductConfig((stagingDirectory in Universal).value, (stagingDirectory in UniversalDocs).value),
22-
wixProductConfig <<= (wixProductConfig
22+
wixProductConfig := (wixProductConfig
2323
dependsOn (stage in Universal)
24-
dependsOn (stage in UniversalDocs)),
24+
dependsOn (stage in UniversalDocs)).value,
2525

2626
packageBin in Windows := {
2727
val versioned = target.value / s"${name.value}-${version.value}.msi"

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.9
1+
sbt.version=0.13.13

scripts/jobs/release/website/archives

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# need to re-declare it as an array, not sure how to do that directly in jenkins
33
declare -a sshCharaArgs="$sshCharaArgs"
44

5-
url="http://downloads.typesafe.com/scala/$version"
5+
url="http://downloads.lightbend.com/scala/$version"
66

77
if [[ "$version" =~ .*-nightly ]]
88
then archivesDir="~linuxsoft/archives/scala/nightly/2.12.x"

src/linux/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
scala
33

4-
Copyright: LAMP/EPFL and Typesafe, Inc.
4+
Copyright: LAMP/EPFL and Lightbend, Inc.
55

66
The home page of scala package is at: http://github.com/scala/scala-dist.
77

0 commit comments

Comments
 (0)