# 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: - test - deploy before_script: - . /opt/mono-4.6/mono-env - 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 - cd ../cli && dnu restore --ignore-failed-sources - cd ../../test/yavscTests && dnu restore --ignore-failed-sources - cd ../.. debug: stage: test artifacts: paths: - test-results.xml - test-results.html when: always script: - cd test/yavscTests - dnu build - ASPNET_ENV=Testing dnx test -maxthreads 1 -xml test-results.xml -html test-results.html release: stage: deploy only: - vnext artifacts: paths: - binaries/Debug script: - make packages deploy_staging: stage: deploy script: - echo "Deploy to staging server" - make strip_yavscd - cd src/Yavsc.Abstract - make push NUGETSOURCE=$NUGETSOURCE NUGETSOURCEAPIKEY=$NUGETSOURCEAPIKEY environment: name: staging url: https://yavscpre.pschneider.fr