Push event #1 failed

  • Ran for
  • Total time
  • New branch build
language: python
# ===== Linux ======
dist: xenial
python:
  - 2.7
  - 3.5
  - 3.6
  - 3.7
  - "3.6-dev"
  - "3.7-dev"
  - "3.8-dev"
matrix:
  fast_finish: true  # allows to determine results when linux builds finish, without waiting for osx and windows builds
  allow_failures:
    - python: "3.6-dev"
    - python: "3.7-dev"
    - python: "3.8-dev"
  #   - os: osx
  #   - os: windows
  include:
    # ======= OSX ========
    - name: "Python 2.7.14 on macOS 10.13"
      os: osx
      osx_image: xcode9.3  # Python 2.7.14_2 running on macOS 10.13
      language: shell       # 'language: python' errors on Travis CI macOS
      before_install:
        - python --version
        - pip install pytest --user
        - pip install codecov --user
      install: pip install ".[test]" --user
      script: python -m pytest  # pytest command won't be found
      after_success: python  -m codecov  # codecov command won't be found
    - name: "Python 3.6.5 on macOS 10.13"
      os: osx
      osx_image: xcode9.4  # Python 3.6.5 running on macOS 10.13
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python3 --version
        - pip3 install -U pip
        - pip3 install -U pytest
        - pip3 install codecov
      script: python3 -m pytest
      after_success: python 3 -m codecov
    - name: "Python 3.7.3 on macOS 10.14"
      os: osx
      osx_image: xcode10.2  # Python 3.7.3 running on macOS 10.14.3
      language: shell       # 'language: python' is an error on Travis CI macOS
      before_install:
        - python3 --version
        - pip3 install -U pip
        - pip3 install -U pytest
        - pip3 install codecov
      script: python3 -m pytest
      after_success: python 3 -m codecov
    #  ====== WINDOWS =========
    - name: "Python 2.7.16 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell # 'language: python' errors Travis CI Windows
      before_install:
        - choco install python2
        - python --version
        - python -m pip install --upgrade pip
        - pip install --upgrade pytest
        - pip install codecov
      env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
    - name: "Python 3.5.4 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell       # 'language: python' is an error on Travis CI Windows
      before_install:
        - choco install python --version 3.5.4
        - python --version
        - python -m pip install --upgrade pip
        - pip3 install --upgrade pytest
        - pip3 install codecov
      env: PATH=/c/Python35:/c/Python35/Scripts:$PATH
    - name: "Python 3.6.8 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell       # 'language: python' is an error on Travis CI Windows
      before_install:
        - choco install python --version 3.6.8
        - python --version
        - python -m pip install --upgrade pip
        - pip3 install --upgrade pytest
        - pip3 install codecov
      env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
    - name: "Python 3.7.4 on Windows"
      os: windows           # Windows 10.0.17134 N/A Build 17134
      language: shell       # 'language: python' is an error on Travis CI Windows
      before_install:
        - choco install python --version 3.7.4
        - python --version
        - python -m pip install --upgrade pip
        - pip3 install --upgrade pytest
        - pip3 install codecov
      env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
  - python --version
  - pip install -U pip
  - pip install -U pytest
  - pip install codecov
  - pip install pymongo
install:
  - echo $TRAVIS_OS_NAME
  - pip install ".[test]"
  # - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ] && ["$TRAVIS_OS_NAME" == "linux"]; then pip install coverage pytest-cov .; else pip install ".[test]"; fi
script: pytest
after_success:
  - codecov  # submit coverage to codecov.io
# deploy:
#   provider: pypi
#   user: shaypal5
#   password:
#     secure: RaTkue2YoXAkT/byvecFuOYdrJpHchCSMYnV4xqUFhQgT8qbyv7/EL+pm6sQ75Ni/JKAhSBdW8l4faKY9X1vW3yc5E2YHBf/81VJo1+JAbD9vGX0RLZbDzIsEVht+hL2Xxvab5Xh3fI7Pcr+cozKKMZxcOvEEwGo5DENM4CquGLeYyUxQOyhwSVjA+54bucFm+u+BA0QxUSHSyFy0cPKJVi8jNMSK/XAvs+Zk26o/MOU3udSj25FBtTkqPTBphaUNkt2EPGK1ZWkS9uhqs+hrETMWj6n6k49WblXvMDJiUtCIM+36Q+GBH/9UxCWuMOjL+uRFjVwwKQEcend9YMvp4+jRZ1HsLAWjMMhazxgkZ6M7bErHRxyabb7om+5IMptPdIo31gw8S1dKktGyuiSVYqs9X2mGA//SoItoDjIAUI81TQ3s2QLw5SfyEARfAdN+QS2aRaZHc0RPcLb10xNu7d7cy/4I88W+dptNqVABCP26Jlg4xsrRGMnONMSt/kWg1enXfgSXJcyrqqAaZzQUs/5QmVGtU4DBl3C8pUiHs6eGdpcqO3vpYoHveNT0WzoONkqZBvzBOjUWf8oMJzI3LcmCruUtktyd9cnlzM49pndnCyXPIKcpqPSGtR0FS3I/QhP7RBB+5xjP39SIuFsEW6ciakOs+AdMePl8tAq01o=
#   distributions: sdist bdist_wheel
#   on:
#     all_branches: true
#     tags: true
#     repo: shaypal5/cachier
#     condition: $TRAVIS_PYTHON_VERSION = "3.5"
#   skip_upload_docs: true
Build Config
{
  "dist": "xenial",
  "matrix": {
    "include": [
      {
        "os": "osx",
        "name": "Python 2.7.14 on macOS 10.13",
        "script": "python -m pytest",
        "install": "pip install \".[test]\" --user",
        "language": "shell",
        "osx_image": "xcode9.3",
        "after_success": "python  -m codecov",
        "before_install": [
          "python --version",
          "pip install pytest --user",
          "pip install codecov --user"
        ]
      },
      {
        "os": "osx",
        "name": "Python 3.6.5 on macOS 10.13",
        "script": "python3 -m pytest",
        "language": "shell",
        "osx_image": "xcode9.4",
        "after_success": "python 3 -m codecov",
        "before_install": [
          "python3 --version",
          "pip3 install -U pip",
          "pip3 install -U pytest",
          "pip3 install codecov"
        ]
      },
      {
        "os": "osx",
        "name": "Python 3.7.3 on macOS 10.14",
        "script": "python3 -m pytest",
        "language": "shell",
        "osx_image": "xcode10.2",
        "after_success": "python 3 -m codecov",
        "before_install": [
          "python3 --version",
          "pip3 install -U pip",
          "pip3 install -U pytest",
          "pip3 install codecov"
        ]
      },
      {
        "os": "windows",
        "env": "PATH=/c/Python27:/c/Python27/Scripts:$PATH",
        "name": "Python 2.7.16 on Windows",
        "language": "shell",
        "before_install": [
          "choco install python2",
          "python --version",
          "python -m pip install --upgrade pip",
          "pip install --upgrade pytest",
          "pip install codecov"
        ]
      },
      {
        "os": "windows",
        "env": "PATH=/c/Python35:/c/Python35/Scripts:$PATH",
        "name": "Python 3.5.4 on Windows",
        "language": "shell",
        "before_install": [
          "choco install python --version 3.5.4",
          "python --version",
          "python -m pip install --upgrade pip",
          "pip3 install --upgrade pytest",
          "pip3 install codecov"
        ]
      },
      {
        "os": "windows",
        "env": "PATH=/c/Python36:/c/Python36/Scripts:$PATH",
        "name": "Python 3.6.8 on Windows",
        "language": "shell",
        "before_install": [
          "choco install python --version 3.6.8",
          "python --version",
          "python -m pip install --upgrade pip",
          "pip3 install --upgrade pytest",
          "pip3 install codecov"
        ]
      },
      {
        "os": "windows",
        "env": "PATH=/c/Python37:/c/Python37/Scripts:$PATH",
        "name": "Python 3.7.4 on Windows",
        "language": "shell",
        "before_install": [
          "choco install python --version 3.7.4",
          "python --version",
          "python -m pip install --upgrade pip",
          "pip3 install --upgrade pytest",
          "pip3 install codecov"
        ]
      }
    ],
    "fast_finish": true,
    "allow_failures": [
      {
        "python": "3.6-dev"
      },
      {
        "python": "3.7-dev"
      },
      {
        "python": "3.8-dev"
      }
    ]
  },
  "python": [
    2.7,
    3.5,
    3.6,
    3.7,
    "3.6-dev",
    "3.7-dev",
    "3.8-dev"
  ],
  "script": "pytest",
  "install": [
    "echo $TRAVIS_OS_NAME",
    "pip install \".[test]\""
  ],
  "language": "python",
  "after_success": [
    "codecov"
  ],
  "before_install": [
    "python --version",
    "pip install -U pip",
    "pip install -U pytest",
    "pip install codecov",
    "pip install pymongo"
  ]
}