-
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
10 changed files
with
176 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
self="$(realpath "$0")" | ||
path="$(dirname "$self")" | ||
|
||
(for e in "$@"; do [[ "$e" == "nix" ]] && exit 0; done) && NIXIFY=1 || NIXIFY=0 | ||
|
||
if [[ "$NIXIFY" == 1 && -z "${IN_NIX_SHELL+x}" ]]; then | ||
echo "Restarting in Nix..." | ||
set -x | ||
nix flake lock | ||
nix flake metadata | ||
exec nix develop --command bash "$self" "$@" | ||
fi | ||
|
||
set -x | ||
cd "$path" | ||
|
||
for i in "$@" | ||
do | ||
case $i in | ||
nix) ;; | ||
*) "./devops/$i.sh" ;; | ||
esac | ||
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
export IZUMI_VERSION=$(cat version.sbt | sed -r 's/.*\"(.*)\".**/\1/' | sed -E "s/SNAPSHOT/build."${CI_BUILD_UNIQ_SUFFIX}"/") | ||
export SCALA212=$(cat project/Deps.sc | grep 'val scala212 ' | sed -r 's/.*\"(.*)\".**/\1/') | ||
export SCALA213=$(cat project/Deps.sc | grep 'val scala213 ' | sed -r 's/.*\"(.*)\".**/\1/') | ||
export SCALA3=$(cat project/Deps.sc | grep 'val scala300 ' | sed -r 's/.*\"(.*)\".**/\1/') | ||
|
||
[[ -z "$SCALA_VERSION" ]] && exit 1 | ||
|
||
case $SCALA_VERSION in | ||
2.12) SCALA_VERSION="$SCALA212" ;; | ||
2.13) SCALA_VERSION="$SCALA213" ;; | ||
3) SCALA_VERSION="$SCALA3" ;; | ||
*) exit 1 ;; | ||
esac | ||
|
||
export SCALA_VERSION="$SCALA_VERSION" | ||
export VERSION_COMMAND="++ $SCALA_VERSION" | ||
|
||
printenv |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
source ./devops/env.sh | ||
|
||
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
[[ "$CI_PULL_REQUEST" != "false" ]] && exit 0 | ||
[[ -z "$TOKEN_NUGET" ]] && exit 0 | ||
[[ -z "$TOKEN_NPM" ]] && exit 0 | ||
[[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && exit 0 | ||
|
||
|
||
echo "PUBLISH IDL RUNTIMES..." | ||
|
||
echo "//registry.npmjs.org/:_authToken=${TOKEN_NPM}" > ~/.npmrc | ||
npm whoami | ||
|
||
./idealingua-v1/idealingua-v1-runtime-rpc-typescript/src/npmjs/publish.sh || exit 1 | ||
./idealingua-v1/idealingua-v1-runtime-rpc-csharp/src/main/nuget/publish.sh || exit 1 |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
source ./devops/env.sh | ||
|
||
[[ "$CI_PULL_REQUEST" != "false" ]] && exit 0 | ||
[[ -z "$TOKEN_NUGET" ]] && exit 0 | ||
[[ -z "$TOKEN_NPM" ]] && exit 0 | ||
[[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] && exit 0 | ||
[[ -f "$SONATYPE_SECRET"]] && exit 0 | ||
|
||
|
||
echo "PUBLISH SCALA LIBRARIES..." | ||
|
||
if [[ "$CI_BRANCH" == "develop" ]] ; then | ||
sbt -batch -no-colors -v "'$VERSION_COMMAND clean'" "'$VERSION_COMMAND package'" "'$VERSION_COMMAND publishSigned'" | ||
else | ||
sbt -batch -no-colors -v "'$VERSION_COMMAND clean'" "'$VERSION_COMMAND package'" "'$VERSION_COMMAND publishSigned'" sonatypeBundleRelease || exit 1 | ||
fi |
Oops, something went wrong.