diff --git a/.travis.yml b/.travis.yml index 17a0d275ddaf..ce3a482d0599 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,9 @@ jobs: include: - stage: final_stage - env: RUNSTEP=finalstage script: - - ./build.sh 2>&1 - git checkout master composer.json - - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then + - if [ "$RUNSTEP" = "finalstage" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then export SHOULD_DEPLOY=false; DEPLOY_OUTPUT=$(env DEPLOY_CACHE=.cache/deploy SECONDS_BEFORE_NEXT_DEPLOY=43200 TRAVIS_COMMIT_MESSAGE="${TRAVIS_COMMIT_MESSAGE}" ./build/deploy.sh) && SHOULD_DEPLOY=true; echo "----------------"; @@ -41,6 +39,7 @@ env: jobs: - RUNSTEP=PY_JS_PHP - RUNSTEP=CSHARP + - RUNSTEP=finalstage global: # PYPI_TOKEN @@ -80,7 +79,8 @@ before_install: sudo apt update; sudo apt install apt-transport-https -y; sudo apt update -y; - else + fi + if [ "$RUNSTEP" == "CSHARP" ]; then sudo apt-get install -y dotnet-sdk-7.0; sudo apt-get install -y dotnet-runtime-7.0; dotnet --version;