-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Swift runtime tests run on Windows! #3767
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
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
274c5d0
Fix warning in Swift runtime
KvanTTT bc15a2c
Use crossplatform semaphore instead of unsafe raw pthread_mutex_t
KvanTTT 02a3d4b
Swift runtime test works on Windows!
KvanTTT ce45d98
Soft fail test if its directory can not be removed
KvanTTT b2ab898
Unify Swift API
KvanTTT 6ac711f
Simplify Swift test project compilation
KvanTTT 975e661
Move Package.swift to Swift runtime directory
KvanTTT 0e74e33
Remove outdated .travis.yml
KvanTTT eaaccea
Fix unsafe concurrent access in RuntimeRunner
KvanTTT 4caccfd
Introduce getCompilerPath() method (actual for C++ and Swift)
KvanTTT 3b7ecc8
Fix linux swift scripts for CircleCI
KvanTTT 802fe7b
Simplify and clarify CircleCI scripts
KvanTTT 83b4329
Add the extra tests group
KvanTTT c98a57b
Update dotnet in tests (3.1 -> 6.0)
KvanTTT bdb3599
Clean up pom.xml files, update dependencies
KvanTTT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,7 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing cpp SDK..." | ||
|
|
||
| sudo apt-get update -y | ||
|
|
||
11 changes: 4 additions & 7 deletions
11
.circleci/scripts/install-linux-dotnet.sh → .circleci/scripts/install-linux-csharp.sh
This file contains hidden or 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,14 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing .Net SDK..." | ||
| wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | ||
| sudo dpkg -i packages-microsoft-prod.deb | ||
| rm packages-microsoft-prod.deb | ||
| sudo apt-get update; \ | ||
| sudo apt-get install -y apt-transport-https && \ | ||
| sudo apt-get update && \ | ||
| sudo apt-get install -y dotnet-sdk-3.1 | ||
| export PATH=$PATH:~/.dotnet | ||
| echo "done installing .Net SDK" | ||
|
|
||
| sudo apt-get install -y dotnet-sdk-6.0 | ||
| echo "done installing .Net SDK" | ||
This file contains hidden or 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,14 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing dart SDK..." | ||
| sudo apt-get update | ||
| sudo apt-get install apt-transport-https | ||
| sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' | ||
| sudo sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list' | ||
| sudo apt-get update | ||
| sudo apt-get install dart=2.12.1-1 | ||
| export PATH="$PATH:/usr/lib/dart/bin" | ||
| echo "done installing dart SDK" | ||
| sudo apt-get install -f |
This file contains hidden or 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,7 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing go SDK..." | ||
| sudo apt update | ||
| sudo apt install golang-go | ||
|
|
||
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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,7 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing python 2..." | ||
| sudo apt-get update -y | ||
| sudo apt-get install python2 | ||
|
|
||
This file contains hidden or 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,7 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing python 3..." | ||
| sudo apt-get update -y | ||
| sudo apt-get install python3 | ||
|
|
||
This file contains hidden or 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,36 +1,19 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "installing swift SDK..." | ||
|
|
||
| .circleci/scripts/install-linux-libcurl3.sh | ||
| sudo apt update && sudo apt upgrade | ||
| sudo apt install binutils git gnupg2 libc6-dev libcurl4 libedit2 libgcc-9-dev libpython2.7 libsqlite3-0 libstdc++-9-dev libxml2 libz3-dev pkg-config tzdata zlib1g-dev | ||
|
|
||
| # see https://tecadmin.net/install-swift-ubuntu-1604-xenial/ | ||
| sudo apt-get update -y | ||
| sudo apt-get install clang libicu-dev | ||
| sudo apt-get install libpython2.7 libpython2.7-dev | ||
| wget https://download.swift.org/swift-5.6.2-release/ubuntu2004/swift-5.6.2-RELEASE/swift-5.6.2-RELEASE-ubuntu20.04.tar.gz | ||
|
|
||
| export SWIFT_VERSION=swift-5.3.2 | ||
| echo "installing gpg key..." | ||
| wget -q -O - https://swift.org/keys/all-keys.asc | sudo gpg --import - | ||
| echo "downloading SDK gpg key..." | ||
| SWIFT_SDK=https://swift.org/builds/$SWIFT_VERSION-release/ubuntu1604/$SWIFT_VERSION-RELEASE/$SWIFT_VERSION-RELEASE-ubuntu16.04.tar.gz | ||
| echo $SWIFT_SDK | ||
| wget -q $SWIFT_SDK | ||
| sudo tar xzf $SWIFT_VERSION-RELEASE-ubuntu16.04.tar.gz | ||
| mv $SWIFT_VERSION-RELEASE-ubuntu16.04 $PWD/swift | ||
| tar xzf swift-5.6.2-RELEASE-ubuntu20.04.tar.gz | ||
|
|
||
| export SWIFT_HOME=$PWD/swift/$SWIFT_VERSION-RELEASE-ubuntu16.04/usr/bin/ | ||
| export PATH=$PWD/swift/usr/bin:$PATH | ||
| sudo mv swift-5.6.2-RELEASE-ubuntu20.04 /usr/share/swift | ||
|
|
||
| # This would fix a know linker issue mentioned in: # https://bugs.swift.org/browse/SR-2299 | ||
| sudo ln -sf ld.gold /usr/bin/ld | ||
| # This would fix missing libtinfo.so.5 | ||
| sudo apt install libncurses5 | ||
| export PATH=$PATH:/usr/share/swift/usr/bin | ||
|
|
||
| echo "done installing swift SDK..." | ||
|
|
||
| # check swift | ||
| swift --version | ||
| swift build --version |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,24 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| declare -i RESULT=0 | ||
|
|
||
| pushd runtime/JavaScript | ||
|
|
||
| pushd runtime/JavaScript || exit | ||
| echo "running jasmine tests..." | ||
| npm test | ||
| RESULT+=$? | ||
|
|
||
| popd | ||
|
|
||
| pushd runtime-testsuite | ||
|
|
||
| echo "running maven tests..." | ||
| export MAVEN_OPTS="-Xmx8g" | ||
| mvn -Dtest=javascript.** test | ||
| RESULT+=$? | ||
|
|
||
| popd | ||
| popd || exit | ||
|
|
||
| exit $RESULT |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably OK, but it looks like this is missing a new line on the end, which annoys UNIX.