mirror of https://github.com/Squidex/squidex.git
7 changed files with 60 additions and 32 deletions
@ -0,0 +1,19 @@ |
|||||
|
# User-specific files |
||||
|
*.suo |
||||
|
*.user |
||||
|
*.vs |
||||
|
|
||||
|
# Build results |
||||
|
build |
||||
|
bin |
||||
|
obj |
||||
|
publish |
||||
|
|
||||
|
# Test Output |
||||
|
_test-output |
||||
|
|
||||
|
# NodeJS |
||||
|
node_modules |
||||
|
|
||||
|
# Scripts (should be copied from node_modules on build) |
||||
|
**/wwwroot/scripts/**/*.* |
||||
@ -1,10 +0,0 @@ |
|||||
version: '2' |
|
||||
services: |
|
||||
squidex-build: |
|
||||
# Use custom aspnet images where phantomjs is installed |
|
||||
build: tools/aspnetcore-build-phantomjs |
|
||||
volumes: |
|
||||
- .:/sln |
|
||||
working_dir: /sln |
|
||||
# Run the build script on local folder |
|
||||
entrypoint: ["sh", "./build.sh"] |
|
||||
@ -0,0 +1,11 @@ |
|||||
|
# Build the image |
||||
|
docker build . -t build-image -f Dockerfile.build |
||||
|
|
||||
|
# Open the image |
||||
|
docker create --name build-cont build-image |
||||
|
|
||||
|
# Copy the output to the host file system |
||||
|
docker cp build-cont:/out ./publish |
||||
|
|
||||
|
# Cleanup |
||||
|
docker rm build-cont |
||||
@ -1,17 +0,0 @@ |
|||||
#!bin/bash |
|
||||
set -e |
|
||||
cd src/Squidex |
|
||||
npm install |
|
||||
npm rebuild node-sass |
|
||||
npm rebuild phantomjs-prebuilt |
|
||||
npm run test:coverage |
|
||||
npm run build:copy |
|
||||
npm run build |
|
||||
cd ./../.. |
|
||||
dotnet restore |
|
||||
dotnet test tests/Squidex.Core.Tests/Squidex.Core.Tests.csproj |
|
||||
dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj |
|
||||
dotnet test tests/Squidex.Read.Tests/Squidex.Read.Tests.csproj |
|
||||
dotnet test tests/Squidex.Write.Tests/Squidex.Write.Tests.csproj |
|
||||
rm -rf $(pwd)/publish/web |
|
||||
dotnet publish src/Squidex/Squidex.csproj -c release -o $(pwd)/publish/web |
|
||||
Loading…
Reference in new issue