Skip to content

Commit e55fe0e

Browse files
committed
Merge branch 'master' of 'topic/sbt1'
2 parents 7705124 + 79281da commit e55fe0e

File tree

597 files changed

+13661
-6908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

597 files changed

+13661
-6908
lines changed

.drone.yml

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,62 @@
1-
# We override the default clone step to workaround a bug with GitHub (see #3415)
21
clone:
2+
git:
3+
image: plugins/git
4+
# We clone submodules ourselves
5+
recursive: false
6+
7+
pipeline:
8+
# We add a custom clone step to workaround a bug with GitHub (see #3415)
9+
# and speed up cloning submodules
310
clone:
411
image: plugins/git
512
commands:
6-
- sleep 5s
7-
- git init
8-
- git remote add origin $DRONE_REMOTE_URL
9-
- git fetch --no-tags origin $DRONE_COMMIT_REF
10-
- if [ $DRONE_BUILD_EVENT = "push" ]; then git reset --hard -q $DRONE_COMMIT_SHA; else git checkout -qf FETCH_HEAD; fi
11-
- git submodule update --init --recursive
13+
- ./project/scripts/ci-clone
1214

13-
pipeline:
1415
# TESTS:
1516
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
1617
test_legacy:
1718
group: test
18-
image: lampepfl/dotty:2017-10-20
19+
image: lampepfl/dotty:2018-01-17
1920
commands:
2021
- cp -R . /tmp/0/ && cd /tmp/0/
2122
- ./project/scripts/sbt legacyTests
2223

2324
test:
2425
group: test
25-
image: lampepfl/dotty:2017-10-20
26+
image: lampepfl/dotty:2018-01-17
2627
commands:
2728
- cp -R . /tmp/1/ && cd /tmp/1/
28-
- ./project/scripts/sbt ";compile ;testAll ;dotty-bench/jmh:run 1 1 tests/pos/alias.scala"
29+
- ./project/scripts/sbt ";compile ;test"
30+
- ./project/scripts/sbtTests
2931

3032
test_bootstrapped:
3133
group: test
32-
image: lampepfl/dotty:2017-10-20
34+
image: lampepfl/dotty:2018-01-17
3335
commands:
3436
- cp -R . /tmp/2/ && cd /tmp/2/
35-
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/testAll ;dotty-bench-bootstrapped/jmh:run 1 1 tests/pos/alias.scala"
37+
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
38+
- ./project/scripts/sbtBootstrappedTests
3639

3740
test_optimised:
3841
group: test
39-
image: lampepfl/dotty:2017-10-20
42+
image: lampepfl/dotty:2018-01-17
4043
commands:
4144
- cp -R . /tmp/3/ && cd /tmp/3/
42-
- ./project/scripts/sbt dotty-optimised/testAll
45+
- ./project/scripts/sbt dotty-optimised/test
4346

44-
test_sbt_1of2:
47+
test_sbt:
4548
group: test
46-
image: lampepfl/dotty:2017-10-20
49+
image: lampepfl/dotty:2018-01-17
4750
commands:
4851
- cp -R . /tmp/4/ && cd /tmp/4/
49-
- ./project/scripts/sbt "sbt-dotty/scripted compilerReporter/* discovery/* sbt-dotty/* source-dependencies/*1of2"
50-
# when:
51-
# sbt scripted tests are slow and don't run on PRs
52-
# event: [ push, tag, deployment ]
53-
54-
test_sbt_2of2:
55-
group: test
56-
image: lampepfl/dotty:2017-10-20
57-
commands:
58-
- cp -R . /tmp/5/ && cd /tmp/5/
59-
- ./project/scripts/sbt "sbt-dotty/scripted source-dependencies/*2of2"
52+
- ./project/scripts/sbt sbt-dotty/scripted
6053
# when:
6154
# sbt scripted tests are slow and don't run on PRs
6255
# event: [ push, tag, deployment ]
6356

6457
# DOCUMENTATION:
6558
documentation:
66-
image: lampepfl/dotty:2017-10-20
59+
image: lampepfl/dotty:2018-01-17
6760
commands:
6861
- ./project/scripts/genDocs
6962
secrets: [ bot_pass ]
@@ -75,29 +68,25 @@ pipeline:
7568
# PUBLISHING:
7669
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
7770
publish_nightly:
78-
image: lampepfl/dotty:2017-10-20
71+
image: lampepfl/dotty:2018-01-17
7972
environment:
8073
- NIGHTLYBUILD=yes
8174
commands:
8275
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
83-
volumes:
84-
- /home/drone/keys:/keys
85-
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
76+
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ]
8677
when:
8778
event: deployment
8879
environment: nightly
8980

9081
publish_release:
91-
image: lampepfl/dotty:2017-10-20
82+
image: lampepfl/dotty:2018-01-17
9283
environment:
9384
- RELEASEBUILD=yes
9485
commands:
9586
# Produces dotty-version.{tar.gz, zip}
9687
- ./project/scripts/sbt dist-bootstrapped/packArchive
9788
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
98-
volumes:
99-
- /home/drone/keys:/keys
100-
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
89+
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ]
10190
when:
10291
event: tag
10392

@@ -114,14 +103,12 @@ pipeline:
114103
event: tag
115104

116105
publish_sbt_release:
117-
image: lampepfl/dotty:2017-10-20
106+
image: lampepfl/dotty:2018-01-17
118107
environment:
119108
- RELEASEBUILD=yes
120109
commands:
121110
- ./project/scripts/sbtPublish ";sbt-dotty/publishSigned ;sonatypeRelease"
122-
volumes:
123-
- /home/drone/keys:/keys
124-
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
111+
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ]
125112
when:
126113
event: deployment
127114
environment: sbt_release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ compiler/test/debug/Gen.jar
7171
compiler/before-pickling.txt
7272
compiler/after-pickling.txt
7373
*.dotty-ide-version
74+
75+
*.decompiled.out

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[submodule "scala2-library"]
66
path = scala2-library
77
url = https://github.com/lampepfl/scala.git
8-
branch = dotty-library
8+
branch = dotty-library2.12
99
[submodule "collection-strawman"]
1010
path = collection-strawman
1111
url = https://github.com/scala/collection-strawman.git

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ This is the process for committing code to the Scala project. There are of cours
99
1. Make sure you have signed the [Scala CLA](http://typesafe.com/contribute/cla/scala), if not, sign it.
1010
2. Before starting to work on a feature or a fix, it's good practice to ensure that:
1111
1. There is a ticket for your work in the project's [issue tracker](https://github.com/lampepfl/dotty/issues);
12-
2. If not, create it first (perhaps given a thumbs up from the dotty-internals mailing list first);
1312
2. The ticket has been discussed and prioritized by the team.
1413
3. You should always perform your work in its own Git branch. The branch should be given a descriptive name that explains its intent. Some teams also like adding the ticket number and/or the [GitHub](http://github.com) user ID to the branch name, these details is up to each of the individual teams. (See below for more details on branch naming.)
1514
4. When the feature or fix is completed you should open a [Pull Request](https://help.github.com/articles/using-pull-requests) on GitHub.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Community build: [![Community Build Status](https://travis-ci.org/lampepfl/dotty
77

88
* [Homepage](http://dotty.epfl.ch)
99
* [Documentation](http://dotty.epfl.ch/docs)
10-
* [FAQ](http://dotty.epfl.ch/#why-dotty)
11-
* [Mailing list](https://groups.google.com/forum/#!forum/dotty-internals)
1210

1311
Try it out
1412
==========

bin/common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ shift # Mutates $@ by deleting the first element ($1)
1313
version="$ROOT/dist-bootstrapped/target/pack/VERSION"
1414

1515
# Create the target if absent or if file changed in ROOT/compiler
16-
new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -newer "$version" >& /dev/null)"
16+
new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -newer "$version" 2> /dev/null)"
1717

18-
if [ ! -f "$target" ] || [ ! -z "$new_files" ]; then
18+
if [ ! -f "$version" ] || [ ! -z "$new_files" ]; then
1919
echo "Building Dotty..."
2020
sbt "dist-bootstrapped/pack"
2121
fi

bot/src/dotty/tools/bot/Main.scala

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)