yavsc/.gitlab-ci.yml

69 lines
1.7 KiB
YAML

# Please find the full example project here:
# https://gitlab.com/tobiaskoch/gitlab-ci-example-mono
# see https://hub.docker.com/_/mono/
image: mono:4.6.2.7
stages:
3 years ago
- build
- test
- deploy
4 years ago
before_script:
- . /opt/mono-4.6/mono-env
4 years ago
- export GIT_SSL_NO_VERIFY=true
- curl --insecure -sSL https://lua.pschneider.fr/files/Paul/pub/dnx-install.sh | bash
- DNX_USER_HOME=`pwd -P`/dnx . ./dnx/dnvm/dnvm.sh
- cd src/OAuth.AspNet.Token && dnu restore --ignore-failed-sources
- cd ../OAuth.AspNet.AuthServer && dnu restore --ignore-failed-sources
- cd ../Yavsc.Abstract && dnu restore --ignore-failed-sources
- cd ../Yavsc.Server && dnu restore --ignore-failed-sources
- cd ../Yavsc && dnu restore --ignore-failed-sources
4 years ago
- cd ../cli && dnu restore --ignore-failed-sources
3 years ago
- cd ../../test/yavscTests && dnu restore --ignore-failed-sources
4 years ago
- cd ../..
after_script:
4 years ago
debug:
3 years ago
stage: build
artifacts:
paths:
- test/yavscTests/bin
script:
- cd test/yavscTests
- dnu build
non_reg:
stage: test
3 years ago
artifacts:
paths:
- test/yavscTests/test-results.xml
3 years ago
when: always
4 years ago
script:
3 years ago
- cd test/yavscTests
3 years ago
- cp $TestingConfig appsettings.Testing.json
- cp $yavsc_client_secret_json yavsc-client-secret.json
3 years ago
- ASPNET_ENV=Testing dnx test -maxthreads 1 -xml test-results.xml
release:
stage: deploy
only:
- vnext
artifacts:
paths:
4 years ago
- binaries/Debug
script:
- make packages
4 years ago
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
4 years ago
- make strip_yavscd
4 years ago
- cd src/Yavsc.Abstract
- make push NUGETSOURCE=$NUGETSOURCE NUGETSOURCEAPIKEY=$NUGETSOURCEAPIKEY
4 years ago
environment:
name: staging
url: https://yavscpre.pschneider.fr