Skip to content
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

Add windows CI #9647

Merged
merged 4 commits into from
Aug 26, 2020
Merged

Add windows CI #9647

merged 4 commits into from
Aug 26, 2020

Conversation

liufengyun
Copy link
Contributor

Add windows CI

We need a basic windows CI to prevent regressions (See #9642)

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, @liufengyun !

.appveyor.yml Show resolved Hide resolved
.appveyor.yml Outdated
test_script:
- cmd: sbt "dotty-bootstrapped/dotc tests\pos\HelloWorld.scala"
- cmd: sbt sjsJUnitTests/test
- cmd: sbt test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test won't work on Windows at the moment. Although run tests basically work, all neg tests are completely broken on Windows, because they pervasively expect file names with /. Fixing those is probably best left to another day, or at least another PR. ;)

@@ -199,7 +199,7 @@ final class FileZipArchive(jpath: JPath) extends ZipArchive(jpath) {
final class ManifestResources(val url: URL) extends ZipArchive(null) {
def iterator(): Iterator[AbstractFile] = {
val root = new DirEntry("/", null)
val dirs = new mutable.HashMap[String, DirEntry]; dirs.put("/", root)
val dirs = mutable.HashMap[String, DirEntry]("/" -> root)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change intended in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not intended, I'll move it to #9644.

@sjrd
Copy link
Member

sjrd commented Aug 26, 2020

The JS tests failed because the default Node.js version is too old on the AppVeyor images. You can install a recent enough version with the following lines in .appveyor.yml:
https://github.com/scala-js/scala-js/blob/598063ae88b5b26145e968e1990ca677f63d5123/appveyor.yml#L3-L5
and
https://github.com/scala-js/scala-js/blob/598063ae88b5b26145e968e1990ca677f63d5123/appveyor.yml#L8-L9

You may also want to copy some other lines from that file, for example setting options to give more memory to sbt (currently it quickly disables compilation because the code cache is full):
https://github.com/scala-js/scala-js/blob/598063ae88b5b26145e968e1990ca677f63d5123/appveyor.yml#L13

@liufengyun
Copy link
Contributor Author

Merge, so other PRs can be green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants