Конфигурация сборки Travis не относится к матрице на работу - PullRequest
0 голосов
/ 17 мая 2019

Это моя сборка: https://travis -ci.org / SaltieRL / DistributedReplays / сборки / 533611955

У меня есть задания по настройке, но они не могут запустить матрицу сборки Вместо этого он добавляет 2 случайных Python, а затем выполняет все этапы на том, кто знает, какая версия Python

sudo: required
dist: xenial
language: python
python:
  - '3.6'
  - '3.7'

services:
- postgresql
- redis-server

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test


install:
- pip install -r requirements.txt
- pip install -r requirements-test.txt
- ls
- cd webapp
- npm install
- cd $TRAVIS_BUILD_DIR

script: echo 'nothing'

stages:
  - lint
  - test
  - deploy


jobs:
  include:
    - stage: lint
      name: "style checks"
      python: "3.7"
      script:
        - chmod 777 .travis/tslint.sh && .travis/tslint.sh
    - stage: test
      name: "server unit tests"
      script:
        - pytest --cov=./
        - bash <(curl -s https://codecov.io/bash) -c -F server
    - stage: test
      name: "integration tests"
      script:
        - cd $TRAVIS_BUILD_DIR
        - cd webapp
        - npm install
        - npm start &
        - cd $TRAVIS_BUILD_DIR
        - celery -A backend.tasks.celery_tasks.celery worker --pool=solo -l info &
        - python3 RLBotServer.py &
    - stage: test
      name: "react unit tests"
      # we only need to run npm tests for one python version
      python: "3.6"
      script:
        - cd webapp
        - npm test
    - stage: deploy
      name: "Deploy"
      python: "3.7"
      after_success:
      - codecov
      - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
      - chmod +x .travis/send.sh
      - ./.travis/send.sh success $WEBHOOK_URL

      after_failure:
        - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
        - chmod +x .travis/send.sh
        - ./.travis/send.sh failure $WEBHOOK_URL

Есть ли что-то, что я делаю не так? Я следую за документами и в них соблюдается матрица

...