-
Notifications
You must be signed in to change notification settings - Fork 4
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
66 changed files
with
263 additions
and
8,341 deletions.
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
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
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
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,6 +1,5 @@ | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
|
||
set -e | ||
set -x | ||
|
||
export CI_BUILD_UNIQ_SUFFIX="${CI_BUILD_UNIQ_SUFFIX:-$(date +%s)}" | ||
export IDEALINGUA_VERSION=$(cat version.sbt | sed -r 's/.*\"(.*)\".**/\1/' | sed -E "s/SNAPSHOT/build."${CI_BUILD_UNIQ_SUFFIX}"/") |
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
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,7 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
set -xeuo pipefail | ||
|
||
([[ "$CI_PULL_REQUEST" == "true" ]] && echo "Publishing not allowed on P/Rs" && exit 0 || true) | ||
([[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && echo "Publishing not allowed (CI_BRANCH=$CI_BRANCH, CI_BRANCH_TAG=$CI_BRANCH_TAG)" && exit 0) || true |
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,9 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
set -xeuo pipefail | ||
|
||
source ./devops/.env.sh | ||
printenv | ||
|
||
sbt -batch -no-colors -v clean coverage "$VERSION_COMMAND test" "$VERSION_COMMAND coverageReport" |
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,6 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
set -xeuo pipefail | ||
|
||
bash sbtgen.sc --js |
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
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
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
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,53 @@ | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
|
||
source ./devops/.env.sh | ||
printenv | ||
|
||
refsdir="$PWD/idealingua-v1/idealingua-v1-test-defs/src/main/resources/refs/csharp" | ||
refs="$(find "$refsdir" -name "*.dll" -exec echo "/reference:{}" \; | xargs -0 | tr '\n' ' ')" | ||
|
||
|
||
function test_msbuild_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :csharp -d layout=NUGET" | ||
|
||
pushd . | ||
cd $tmpdir/csharp | ||
|
||
msbuild /t:Restore /t:Rebuild | ||
|
||
for f in nuspec/*.nuspec | ||
do | ||
nuget pack "$f" | ||
done | ||
|
||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
function test_plain_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :csharp -d layout=PLAIN" | ||
|
||
pushd . | ||
cd $tmpdir/csharp | ||
|
||
csc -target:library -out:tests.dll "-recurse:\\*.cs" $refs | ||
cp "$refsdir"/*.dll . | ||
nunit3-console tests.dll | ||
|
||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
find ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs -maxdepth 1 -mindepth 1 -type d | while IFS= read -r file; do | ||
test_msbuild_prj "$file" | ||
test_plain_prj "$file" | ||
done |
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,30 @@ | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
|
||
source ./devops/.env.sh | ||
|
||
function test_pb_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :protobuf" | ||
|
||
pushd . | ||
cd $tmpdir/protobuf | ||
|
||
mkdir ./java-out | ||
protoc --java_out=./java-out $(find ./ -iname '*.proto') | ||
|
||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
test_pb_prj ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs/main-tests | ||
test_pb_prj ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs/overlays | ||
|
||
# subdir is broken (nested generics) | ||
|
||
#find ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs -maxdepth 1 -mindepth 1 -type d | while IFS= read -r file; do | ||
# test_pb_prj "$file" | ||
#done |
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,57 @@ | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
|
||
source ./devops/.env.sh | ||
|
||
classpath="$(TERM=dumb sbt --batch --error "$VERSION_COMMAND ; export idealingua-v1-compiler/runtime:fullClasspath")" | ||
|
||
function test_sbt_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :scala -d layout=SBT" | ||
|
||
pushd . | ||
cd $tmpdir/scala | ||
[[ -f build.sbt ]] || exit 1 | ||
sbt clean compile | ||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
function test_plain_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :scala -d layout=PLAIN" | ||
|
||
pushd . | ||
cd $tmpdir/scala | ||
files=$(find . -name '*.scala' -print0 | xargs -0) | ||
|
||
mkdir ./target | ||
cs \ | ||
launch \ | ||
scalac:"${SCALA_VERSION}" \ | ||
-- \ | ||
-deprecation \ | ||
-opt-warnings:_ \ | ||
-d \ | ||
./target \ | ||
-classpath "$classpath" \ | ||
${files} | ||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
find ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs -maxdepth 1 -mindepth 1 -type d | while IFS= read -r file; do | ||
test_sbt_prj "$file" | ||
test_plain_prj "$file" | ||
done | ||
|
||
|
||
find ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs-special -name 'scala-*' -maxdepth 1 -mindepth 1 -type d | while IFS= read -r file; do | ||
test_plain_prj "$file" | ||
done |
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,45 @@ | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
|
||
source ./devops/.env.sh | ||
|
||
function test_yarn_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :typescript -d layout=YARN" | ||
|
||
pushd . | ||
cd $tmpdir/typescript | ||
[[ -f tsconfig.json ]] || exit 1 | ||
|
||
yarn install | ||
yarn build | ||
|
||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
function test_plain_prj() { | ||
echo "IDL TEST ABOUT TO START: $1" | ||
testname="$(basename $1)" | ||
tmpdir="$(mktemp -d -t "$testname".XXXXXXXX)" | ||
|
||
sbt "$VERSION_COMMAND ; idealingua-v1-compiler/run --root=$1 --source=$1/source --overlay=$1/overlay --target=$tmpdir :typescript -d layout=PLAIN" | ||
|
||
pushd . | ||
cd $tmpdir/typescript | ||
[[ -f tsconfig.json ]] || exit 1 | ||
|
||
yarn install | ||
tsc -p tsconfig.json | ||
|
||
popd | ||
echo "IDL TEST DONE: $1" | ||
} | ||
|
||
find ./idealingua-v1/idealingua-v1-test-defs/src/main/resources/defs -maxdepth 1 -mindepth 1 -type d | while IFS= read -r file; do | ||
test_yarn_prj "$file" | ||
test_plain_prj "$file" | ||
done |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...resources/defs/any/idltest/streams.domain → .../main-tests/source/idltest/streams.domain
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.