Skip to content

Fix genDocs following the full bootstrap #6348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ pipeline:
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
test:
group: test
image: lampepfl/dotty:2019-02-06
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-02-06
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"
- ./project/scripts/bootstrapCmdTests

community_build:
group: test
image: lampepfl/dotty:2019-02-06
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-02-06
image: lampepfl/dotty:2019-04-22
commands:
- cp -R . /tmp/4/ && cd /tmp/4/
- ./project/scripts/sbt sbt-dotty/scripted
Expand All @@ -54,14 +54,14 @@ pipeline:

test_scala212:
group: test
image: lampepfl/dotty:2019-02-06
image: lampepfl/dotty:2019-04-22
commands:
- cp -R . /tmp/5/ && cd /tmp/5/
- ./project/scripts/sbt ";++2.12.8 ;compile ;test"

# DOCUMENTATION:
documentation:
image: lampepfl/dotty:2019-02-06
image: lampepfl/dotty:2019-04-22
commands:
- ./project/scripts/genDocs
secrets: [ bot_token ]
Expand All @@ -73,7 +73,7 @@ pipeline:
# PUBLISHING:
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
publish_nightly:
image: lampepfl/dotty:2019-02-06
image: lampepfl/dotty:2019-04-22
environment:
- NIGHTLYBUILD=yes
commands:
Expand All @@ -84,7 +84,7 @@ pipeline:
environment: nightly

publish_release:
image: lampepfl/dotty:2019-02-06
image: lampepfl/dotty:2019-04-22
environment:
- RELEASEBUILD=yes
commands:
Expand All @@ -108,7 +108,7 @@ pipeline:
event: tag

publish_sbt_release:
image: lampepfl/dotty:2019-02-06
image: lampepfl/dotty:2019-04-22
environment:
- RELEASEBUILD=yes
commands:
Expand Down
4 changes: 4 additions & 0 deletions doc-tool/src/dotty/tools/dottydoc/model/factories.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ object factories {

case tp: LazyRef =>
expandTpe(tp.ref)

case MatchType(bound, scrutinee, cases) =>
// See #6295
ConstantReference("FIXME: MatchType support")
}

expandTpe(t)
Expand Down
22 changes: 22 additions & 0 deletions doc-tool/src/dotty/tools/dottydoc/staticsite/Yaml.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package dotty.tools.dottydoc.staticsite;

import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.core.type.TypeReference;

import java.util.HashMap;
import java.io.ByteArrayInputStream;

public class Yaml {

public static HashMap<String, Object> apply(String input)
throws java.io.UnsupportedEncodingException, java.io.IOException {
ByteArrayInputStream is = new ByteArrayInputStream(input.getBytes("UTF-8"));
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());

TypeReference<HashMap<String, Object>> typeRef =
new TypeReference<HashMap<String, Object>>() {};

return mapper.readValue(is, typeRef);
}
}
23 changes: 0 additions & 23 deletions doc-tool/src/dotty/tools/dottydoc/staticsite/Yaml.scala

This file was deleted.