Skip to content

Commit

Permalink
ajustar buildspec e criar pasta scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoKroetz committed May 18, 2024
1 parent bf385e9 commit 2d438ba
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 41 deletions.
28 changes: 0 additions & 28 deletions Hotel.Domain/buildspec.yml

This file was deleted.

10 changes: 3 additions & 7 deletions HotelSistem.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hotel.Tests", "Hotel.Tests\Hotel.Tests.csproj", "{B2588852-31D5-4E62-9DDB-2A71E10C3335}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Root", "Root", "{3CC7FE64-D99E-4A3E-BEF7-0B7E3F5DA4C3}"
ProjectSection(SolutionItems) = preProject
appspec.yml = appspec.yml
Hotel.Domain\buildspec.yml = Hotel.Domain\buildspec.yml
HotelSistem.service = HotelSistem.service
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{6C55B137-568E-409B-8053-0B7B34DCA34D}"
ProjectSection(SolutionItems) = preProject
after_install.sh = after_install.sh
appspec.yml = appspec.yml
before_install.sh = before_install.sh
Hotel.Domain\buildspec - Cópia.yml = Hotel.Domain\buildspec - Cópia.yml
HotelSistem.service = HotelSistem.service
start_server.sh = start_server.sh
validate_service.sh = validate_service.sh
EndProjectSection
Expand Down
18 changes: 12 additions & 6 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ version: 0.2
phases:
install:
runtime-versions:
dotnet: 6.0
dotnet: 8.0
commands:
- echo Installing dependencies...
- echo Installing .NET Core
- dotnet --version
pre_build:
commands:
- echo Restoring dependencies
- dotnet restore
build:
commands:
- echo Build started on `date`
- dotnet build --configuration Release
- echo Building the solution in Debug and Release configurations
- dotnet build HotelSistem.sln --configuration Debug
- dotnet build HotelSistem.sln --configuration Release
post_build:
commands:
- echo Build completed on `date`
- dotnet test --configuration Release
- echo Running unit tests
- dotnet test

artifacts:
files:
- '**/*'
- 'appspec.yml'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2d438ba

Please sign in to comment.