Skip to content

Commit

Permalink
Configure CI (no. 118)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jun 3, 2021
1 parent efb89ee commit b7ff229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -213,3 +213,5 @@ FakesAssemblies/
/src/Tools/npm/dotvvm-types/*.d.ts
/src/DotVVM.Framework/junit.xml
artifacts/
.nuget/
.npm/
10 changes: 5 additions & 5 deletions ci/linux/run.sh
@@ -1,24 +1,24 @@
#/bin/bash

ROOT=${DOTVVM_ROOT:-$(pwd)}
# override DOTVVM_ROOT in case this is a local build
export DOTVVM_ROOT=$ROOT

CONFIGURATION=${BUILD_CONFIGURATION:-Release}
TEST_RESULTS_DIR=$ROOT/artifacts/tests
DISPLAY=${DISPLAY:-":42"}
echo "ROOT=$DOTVVM_ROOT"
echo "ROOT=$ROOT"
echo "CONFIGURATION=$CONFIGURATION"

cd $ROOT/src/DotVVM.Framework \
&& npm ci --cache $(DOTVVM_ROOT)/.npm --prefer-offline \
&& npm ci --cache ${ROOT}/.npm --prefer-offline \
&& npm run build

if [ $? -ne 0 ]; then
echo >&2 "npm build failed"
exit 1
fi

# override DOTVVM_ROOT in case this is a local build
export DOTVVM_ROOT=$ROOT

cd $ROOT \
&& dotnet restore $ROOT/ci/linux/Linux.sln --packages $ROOT/.nuget\
&& dotnet build $ROOT/ci/linux/Linux.sln --no-restore --configuration $CONFIGURATION
Expand Down

0 comments on commit b7ff229

Please sign in to comment.