forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,250 changed files
with
56,160 additions
and
121,043 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,140 +1,213 @@ | ||
--- | ||
kind: pipeline | ||
name: default | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
clone: | ||
git: | ||
image: plugins/git | ||
# We clone submodules ourselves | ||
recursive: false | ||
|
||
pipeline: | ||
# We add a custom clone step to workaround a bug with GitHub (see #3415) | ||
clone: | ||
image: plugins/git | ||
commands: | ||
# if build is PR rebase on top of target branch | ||
- if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then | ||
git config user.email "[email protected]"; | ||
git config user.name "Dotty CI"; | ||
git pull "$DRONE_REMOTE_URL" "$DRONE_BRANCH"; | ||
fi | ||
|
||
# TESTS: | ||
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict | ||
test: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/1/ && cd /tmp/1/ | ||
- ./project/scripts/sbt ";compile ;test" | ||
- ./project/scripts/cmdTests | ||
|
||
test_bootstrapped: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/2/ && cd /tmp/2/ | ||
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test; dotty-semanticdb/compile; dotty-semanticdb/test:compile;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test" | ||
- ./project/scripts/bootstrapCmdTests | ||
|
||
community_build: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/3/ && cd /tmp/3/ | ||
- git submodule update --init --recursive --jobs 7 | ||
- ./project/scripts/sbt community-build/test | ||
|
||
test_sbt: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/4/ && cd /tmp/4/ | ||
- ./project/scripts/sbt sbt-dotty/scripted | ||
when: | ||
# sbt scripted tests are slow and only run on nightly or deployment | ||
event: [ tag, deployment ] | ||
|
||
test_scala212: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/5/ && cd /tmp/5/ | ||
- ./project/scripts/sbt ";++2.12.8 ;compile ;test" | ||
# when: | ||
# event: [ push, tag, deployment ] | ||
|
||
test_java11: | ||
group: test | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH" | ||
- cp -R . /tmp/6/ && cd /tmp/6/ | ||
- ./project/scripts/sbt ";compile ;test" | ||
when: | ||
event: [ push, tag, deployment ] | ||
|
||
# DOCUMENTATION: | ||
documentation: | ||
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- ./project/scripts/genDocs | ||
secrets: [ bot_token ] | ||
when: | ||
event: push | ||
# We only generate the documentation for the master branch | ||
branch: master | ||
|
||
# PUBLISHING: | ||
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala | ||
publish_nightly: | ||
image: lampepfl/dotty:2019-04-22 | ||
environment: | ||
- NIGHTLYBUILD=yes | ||
commands: | ||
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease" | ||
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ] | ||
when: | ||
event: deployment | ||
environment: nightly | ||
|
||
publish_release: | ||
image: lampepfl/dotty:2019-04-22 | ||
environment: | ||
- RELEASEBUILD=yes | ||
commands: | ||
# Produces dotty-version.{tar.gz, zip} | ||
- ./project/scripts/sbt dist-bootstrapped/packArchive | ||
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease" | ||
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ] | ||
when: | ||
event: tag | ||
|
||
# Publish dotty-version.{tar.gz, zip} to GitHub Release | ||
github_release: | ||
image: plugins/github-release | ||
secrets: [ github_token ] | ||
disable: true | ||
|
||
steps: | ||
- name: git | ||
pull: default | ||
image: plugins/git | ||
|
||
- name: clone | ||
pull: default | ||
image: plugins/git | ||
depends_on: [ git ] | ||
commands: | ||
- if [ "$DRONE_BUILD_EVENT" = "pull_request" ]; then | ||
git config user.email "[email protected]"; | ||
git config user.name "Dotty CI"; | ||
git pull "$DRONE_REMOTE_URL" "$DRONE_BRANCH"; | ||
fi | ||
|
||
- name: test | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: [ clone ] | ||
commands: | ||
- cp -R . /tmp/1/ && cd /tmp/1/ | ||
- ./project/scripts/sbt ";compile ;test" | ||
- ./project/scripts/cmdTests | ||
|
||
- name: test_bootstrapped | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: [ clone ] | ||
commands: | ||
- cp -R . /tmp/2/ && cd /tmp/2/ | ||
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test ;dotty-staging/test ;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test" | ||
- ./project/scripts/bootstrapCmdTests | ||
|
||
- name: community_build | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: [ clone ] | ||
commands: | ||
- cp -R . /tmp/3/ && cd /tmp/3/ | ||
- git submodule sync | ||
- git submodule update --init --recursive --jobs 7 | ||
- ./project/scripts/sbt community-build/test | ||
|
||
- name: test_sbt | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: [ clone ] | ||
commands: | ||
- cp -R . /tmp/4/ && cd /tmp/4/ | ||
- ./project/scripts/sbt sbt-dotty/scripted | ||
when: | ||
event: | ||
- tag | ||
- promote | ||
|
||
- name: test_java11 | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: [ clone ] | ||
commands: | ||
- export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH" | ||
- cp -R . /tmp/6/ && cd /tmp/6/ | ||
- ./project/scripts/sbt ";compile ;test" | ||
when: | ||
event: | ||
- tag | ||
- promote | ||
|
||
- name: documentation | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: | ||
- test | ||
- test_bootstrapped | ||
- community_build | ||
- test_java11 | ||
commands: | ||
- ./project/scripts/genDocs | ||
environment: | ||
BOT_TOKEN: | ||
from_secret: bot_token | ||
when: | ||
branch: | ||
- master | ||
event: | ||
- push | ||
|
||
- name: publish_nightly | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: | ||
- test | ||
- test_bootstrapped | ||
- community_build | ||
- test_sbt | ||
- test_java11 | ||
commands: | ||
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease" | ||
environment: | ||
NIGHTLYBUILD: yes | ||
PGP_PW: | ||
from_secret: pgp_pw | ||
PGP_SECRET: | ||
from_secret: pgp_secret | ||
SONATYPE_PW: | ||
from_secret: sonatype_pw | ||
SONATYPE_USER: | ||
from_secret: sonatype_user | ||
when: | ||
event: | ||
- promote | ||
target: | ||
- nightly | ||
|
||
- name: publish_release | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: | ||
- test | ||
- test_bootstrapped | ||
- community_build | ||
- test_sbt | ||
- test_java11 | ||
commands: | ||
- ./project/scripts/sbt dist-bootstrapped/packArchive | ||
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease" | ||
environment: | ||
PGP_PW: | ||
from_secret: pgp_pw | ||
PGP_SECRET: | ||
from_secret: pgp_secret | ||
RELEASEBUILD: yes | ||
SONATYPE_PW: | ||
from_secret: sonatype_pw | ||
SONATYPE_USER: | ||
from_secret: sonatype_user | ||
when: | ||
event: | ||
- tag | ||
|
||
- name: github_release | ||
pull: default | ||
image: plugins/github-release | ||
depends_on: [ publish_release ] | ||
settings: | ||
checksum: | ||
- sha256 | ||
draft: true | ||
files: | ||
- dist-bootstrapped/target/dotty-* | ||
checksum: | ||
- sha256 | ||
when: | ||
event: tag | ||
|
||
publish_sbt_release: | ||
image: lampepfl/dotty:2019-04-22 | ||
environment: | ||
- RELEASEBUILD=yes | ||
commands: | ||
- ./project/scripts/sbtPublish ";sbt-dotty/publishSigned ;sonatypeRelease" | ||
secrets: [ sonatype_user, sonatype_pw, pgp_pw, pgp_secret ] | ||
when: | ||
event: deployment | ||
environment: sbt_release | ||
|
||
# NOTIFICATIONS: | ||
slack: | ||
image: plugins/slack | ||
- dist-bootstrapped/target/dotty-* | ||
environment: | ||
GITHUB_TOKEN: | ||
from_secret: github_token | ||
when: | ||
event: | ||
- tag | ||
|
||
- name: publish_sbt_release | ||
pull: default | ||
image: lampepfl/dotty:2019-10-17 | ||
depends_on: | ||
- test | ||
- test_bootstrapped | ||
- community_build | ||
- test_sbt | ||
- test_java11 | ||
commands: | ||
- ./project/scripts/sbtPublish ";project sbt-dotty ;publishSigned ;sonatypeBundleRelease" | ||
environment: | ||
PGP_PW: | ||
from_secret: pgp_pw | ||
PGP_SECRET: | ||
from_secret: pgp_secret | ||
RELEASEBUILD: yes | ||
SONATYPE_PW: | ||
from_secret: sonatype_pw | ||
SONATYPE_USER: | ||
from_secret: sonatype_user | ||
when: | ||
event: | ||
- promote | ||
target: | ||
- sbt_release | ||
|
||
- name: slack | ||
pull: default | ||
image: plugins/slack | ||
settings: | ||
channel: dotty | ||
secrets: [ slack_webhook ] | ||
when: | ||
status: [ failure ] | ||
event: [ push, tag, deployment ] | ||
environment: | ||
SLACK_WEBHOOK: | ||
from_secret: slack_webhook | ||
when: | ||
event: | ||
- push | ||
- tag | ||
- promote | ||
status: | ||
- failure | ||
|
||
... |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: "\U0001F4A5 Crash report" | ||
about: Report a Dotty Compiler compiler crash | ||
title: '' | ||
labels: itype:bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
## minimized code | ||
|
||
```Scala | ||
println("hello, world") | ||
``` | ||
|
||
|
||
<details> | ||
<summary>Stack trace</summary> | ||
|
||
```scala | ||
# TODO add stack trace here | ||
``` | ||
</details> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: "Syntax highlighting" | ||
about: Please create a syntax highlighting issue here https://github.com/scala/vscode-scala-syntax/issues | ||
title: '' | ||
labels: | ||
assignees: '' | ||
|
||
--- | ||
|
||
Please create a syntax highlighting issue here: [scala/vscode-scala-syntax](https://github.com/scala/vscode-scala-syntax/issues). | ||
|
||
|
||
|
Oops, something went wrong.