mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
version: 1.0.{build}
|
|
|
|
image: Visual Studio 2017
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
skip_tags: true
|
|
|
|
environment:
|
|
nodejs_version: 6
|
|
DOCKER_USER:
|
|
secure: SWa6ANux+qBasg+rV9s1ow==
|
|
DOCKER_PASS:
|
|
secure: 4qfqj51DHaNYA6o4RcmH9g==
|
|
|
|
install:
|
|
- ps: Install-Product node 6
|
|
|
|
build_script:
|
|
- cd src/Squidex
|
|
- npm i
|
|
- npm run build:copy
|
|
- npm run build
|
|
- cd ../..
|
|
- dotnet restore
|
|
- dotnet publish src/Squidex/Squidex.csproj -o %APPVEYOR_BUILD_FOLDER%/release -c Release
|
|
- docker build %APPVEYOR_BUILD_FOLDER%/release -t squidex/squidex:%APPVEYOR_BUILD_VERSION% -t squidex/squidex:latest
|
|
|
|
test_script:
|
|
- dotnet test tests/Squidex.Infrastructure.Tests/Squidex.Infrastructure.Tests.csproj
|
|
- dotnet test tests/Squidex.Domain.Apps.Core.Tests/Squidex.Domain.Apps.Core.Tests.csproj
|
|
- dotnet test tests/Squidex.Domain.Apps.Read.Tests/Squidex.Domain.Apps.Read.Tests.csproj
|
|
- dotnet test tests/Squidex.Domain.Apps.Write.Tests/Squidex.Domain.Apps.Write.Tests.csproj
|
|
- dotnet test tests/Squidex.Domain.Users.Tests/Squidex.Domain.Users.Tests.csproj
|
|
- cd src/Squidex
|
|
- npm run test:coverage
|
|
|
|
deploy:
|
|
- provider: GitHub
|
|
auth_token:
|
|
secure: 4UMRCqCLa0Hm/3vGAtXK+1QCzWyStTzu3EqVOypD7fPRG5SV+m6bda2w9UHpK634
|
|
artifact: release.zip
|
|
|
|
after_deploy:
|
|
- cmd: >-
|
|
docker login -u="%DOCKER_USER%" -p="%DOCKER_PASS%"
|
|
docker push squidex/squidex:latest
|
|
docker push squidex/squidex:%APPVEYOR_BUILD_VERSION%
|
|
|
|
artifacts:
|
|
- path: release
|
|
|
|
notifications:
|
|
- provider: Slack
|
|
incoming_webhook: https://hooks.slack.com/services/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
|
|
on_build_success: true
|
|
on_build_failure: false
|
|
on_build_status_changed: true
|