~ubuntu-branches/debian/sid/scala/sid

« back to all changes in this revision

Viewing changes to scripts/jobs/validate/publish-core

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg, Mehdi Dogguy, Lucas Satabin, Frank S. Thomas, Emmanuel Bourg
  • Date: 2015-06-05 23:52:59 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20150605235259-wk00vgk83dh8o19g
Tags: 2.10.5-1
* Team upload.

[ Mehdi Dogguy ]
* New upstream release (Closes: #744278).

[ Lucas Satabin ]
* Update patches
* Update the clean target
* Update paths of elements to install
* Update watch file

[ Frank S. Thomas ]
* Remove myself from Uploaders.

[ Emmanuel Bourg ]
* The package has been adopted by the Java Team (Closes: #754935)
* Patched the build to avoid downloading libraries from the Internet
* Replaced the minified JavaScript files with unobfuscated ones
* No longer build scala-partest.jar until diffutils is packaged or replaced
* debian/watch: Fixed the versions matched (x.y.z instead of x.y.z..z)
* debian/rules:
  - Added the missing get-orig-source target (Closes: #724704)
  - Improved the clean target
* debian/control:
  - Build depend on scala (>= 2.10) and bnd
  - Use canonical URLs for the Vcs-* fields
  - Standards-Version updated to 3.9.6 (no changes)
* Switch to debhelper level 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -e
 
2
# This script publishes the core of Scala to maven for use as locker downstream,
 
3
# and saves the relevant properties used in its build artifacts, versions.properties.
 
4
# (This means we'll use locker instead of quick downstream in dbuild.
 
5
#  The only downside is that backend improvements don't improve compiler performance itself until they are in STARR).
 
6
# The version is suffixed with "-${sha:0:7}-SNAPSHOT"
 
7
 
 
8
baseDir=${WORKSPACE-`pwd`}
 
9
scriptsDir="$baseDir/scripts"
 
10
. $scriptsDir/common
 
11
 
 
12
case $prDryRun in
 
13
  yep)
 
14
    echo "DRY RUN"
 
15
    mkdir -p build/pack ; mkdir -p dists/maven/latest
 
16
    ;;
 
17
  *)
 
18
    sha=$(git rev-parse HEAD) # TODO: warn if $repo_ref != $sha (we shouldn't do PR validation using symbolic gitrefs)
 
19
    echo "sha/repo_ref == $sha/$repo_ref ?"
 
20
 
 
21
    parseScalaProperties build.number
 
22
 
 
23
    ./pull-binary-libs.sh
 
24
    # "noyoudont" is there juuuust in case
 
25
    antDeployArgs="-Dmaven.version.suffix=\"-${sha:0:7}-SNAPSHOT\" -Dremote.snapshot.repository=$prRepoUrl -Drepository.credentials.id=pr-scala -Dremote.release.repository=noyoudont"
 
26
 
 
27
    # master doesn't currently build with starr, so can't skip locker yet...
 
28
    # TODO: enable for 2.11 once we have bumped versions in versions.properties accordingly
 
29
    antBuildArgs="-Dlocker.skip=1" # -Dstarr.use.released=1 should be left up to the build (via versions.properties)
 
30
 
 
31
    # TODO: can we move doc generation downstream as well?
 
32
    # build to (later) publish with a maven suffix that encodes the first 7 characters of the sha of the commit that we're validating
 
33
    # (don't use the sha of the merge commit as we don't have an easy way of passing that down the validation chain)
 
34
    ant -Darchives.skipxz=true $antDeployArgs $antBuildArgs distpack-maven-opt
 
35
 
 
36
    # mv buildcharacter.properties jenkins.properties # parsed by the jenkins job
 
37
    echo "maven.version.number=$version_major.$version_minor.$version_patch-${sha:0:7}-SNAPSHOT" > jenkins.properties
 
38
 
 
39
    cd dists/maven/latest
 
40
    ant $antDeployArgs deploy-core.snapshot
 
41
    ;;
 
42
esac