diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cab5e67c64bd..000000000000 --- a/.travis.yml +++ /dev/null @@ -1,96 +0,0 @@ -language: node_js -node_js: - - '8' -services: - - docker -env: - matrix: - - MODE=syntax - - MODE=python - - MODE=node - - MODE=ruby - - MODE=java - - MODE=go - - MODE=semantic PR_ONLY=true - - MODE=semantic PR_ONLY=false - - MODE=model PR_ONLY=false - - MODE=linter PR_ONLY=true - - MODE=model PR_ONLY=true - - MODE=BreakingChange PR_ONLY=true - - MODE=azurebot PR_ONLY=true - - MODE=liveValidation PR_ONLY=true -matrix: - fast_finish: true - allow_failures: - - env: MODE=semantic PR_ONLY=false - - env: MODE=model PR_ONLY=false - - env: MODE=linter PR_ONLY=true - - env: MODE=model PR_ONLY=true - - env: MODE=BreakingChange PR_ONLY=true - - env: MODE=azurebot PR_ONLY=true - - env: MODE=liveValidation PR_ONLY=true - - env: MODE=java - - env: MODE=go - - env: MODE=node -before_install: - - docker pull lmazuel/swagger-to-sdk - - python -c "import os; print('\n'.join(v for v in os.environ.keys() if v.startswith('TRAVIS')))" > /tmp/env_file - # Required for installing dotnet 2.0.0 according to https://www.microsoft.com/net/core#linuxubuntu - - curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg - - sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg - - sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list' - - sudo apt-get update - - sudo apt-get install libunwind8 libicu52 -y - - sudo apt-get install dotnet-sdk-2.0.0 -y -install: - - npm install -script: - - DOCKER_CMD="docker run --rm --env-file /tmp/env_file -e GH_TOKEN -v $PWD:/git-restapi/ lmazuel/swagger-to-sdk" - - >- - if [[ $MODE == 'python' ]]; then - $DOCKER_CMD Azure/azure-sdk-for-python -v - fi - - >- - if [[ $MODE == 'node' ]]; then - $DOCKER_CMD Azure/azure-sdk-for-node -v - fi - - >- - if [[ $MODE == 'ruby' ]]; then - $DOCKER_CMD Azure/azure-sdk-for-ruby -v - fi - - >- - if [[ $MODE == 'go' ]]; then - $DOCKER_CMD Azure/azure-sdk-for-go -o latest -v - fi - - >- - if [[ $MODE == 'java' ]]; then - $DOCKER_CMD Azure/azure-libraries-for-java -v - fi - - >- - if [[ $MODE == 'syntax' ]]; then - npm test -- test/syntax.js - fi - - >- - if [[ $MODE == 'linter' ]]; then - npm test -- test/linter.js - fi - - >- - if [[ $MODE == 'semantic' ]]; then - npm test -- test/semantic.js - fi - - >- - if [[ $MODE == 'model' ]]; then - npm test -- test/model.js - fi - - >- - if [[ $MODE == 'BreakingChange' ]]; then - node -- scripts/breaking-change.js - fi - - >- - if [[ $MODE == 'azurebot' ]]; then - node scripts/momentOfTruth.js - fi - - >- - if [[ $MODE == 'liveValidation' ]]; then - node -- scripts/liveValidation.js; - fi