diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..aa15e6d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: microsoft/dotnet:latest + +before_script: + - cd TheGameExtreme + - dotnet restore View + - dotnet restore Model + + +build: + stage : build + script: + - dotnet build -c Release --no-restore View + - dotnet build -c Release --no-restore Model + - dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release View + - dotnet publish -c Release --no-restore -o $CI_PROJECT_DIR/build/release Model + + +unit_tests: + stage : test + script: + - dotnet test --no-restore View + - dotnet test --no-restore Model \ No newline at end of file