From 43d6556556171b3ada6804a29aaff4710e511094 Mon Sep 17 00:00:00 2001 From: Daniel Pryor Date: Wed, 10 Mar 2021 22:16:25 -0700 Subject: [PATCH] fix(optimize_build): remove travis, add ifs to action (#254) Precommit-Verified: 837ace3492538fd683db3d6806ae4319defa9a7062797a06f31b006426862a15 --- .github/workflows/python-package.yml | 2 +- .travis.yml | 56 ---------------------------- CHANGELOG.md | 2 + 3 files changed, 3 insertions(+), 57 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cd0a97e..a4169e5 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -11,6 +11,7 @@ on: jobs: build: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest strategy: @@ -47,7 +48,6 @@ jobs: matrix: python-version: [3.7] - needs: ["build"] runs-on: ubuntu-latest if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8d5773e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- - -language: python -dist: xenial # required for Python >= 3.7 -sudo: required -cache: - directories: - - "$HOME/.cache/pip" - - "$HOME/.pyenv" -matrix: - include: - - name: "Python 3.6 Unit-test" - python: 3.6 - - name: "Python 3.7 Unit-test" - python: 3.7 - - name: "Python 3.7 Docker Unit and Integration-test" - python: 3.7 - services: - - docker - env: - - BUILD_SDIST=true - - INTEGRATION_TEST=true - -install: - - pip install -e . -r requirements.txt -r requirements-tests.txt - - grep -Rl packagecloud /etc/apt/ |sudo xargs rm -vf - - sudo apt-get update && sudo apt-get install -y nodejs npm - - npm install -g dockerfilelint - - if [[ $INTEGRATION_TEST == "true" ]]; then - pip install python-semantic-release; - fi - -script: - - dockerfilelint ./Dockerfile - - flake8 vmware_exporter tests - - pytest --cov=. -v tests/unit - - if [[ $INTEGRATION_TEST == "true" ]]; then - pytest tests/integration; - else - echo "Skipped Integration-Tests"; - fi - -after_success: - - codecov - - if [[ $INTEGRATION_TEST == "true" ]]; then - git config --global user.name "semantic-release (via TravisCI)"; - git config --global user.email "semantic-release@travis"; - semantic-release publish; - semantic-release changelog --post; - fi - -env: - global: - - secure: qC8DzqyxBiBBBUGLuNOO2O6XgmUaLhTi1ArfhYxVDjv5vTJvCNO1DpXfFqXJGR3wrRKe1DOddXildOEL7d7xX6Y3b+k3urnPfqnAM/Hvr0djqDWRPuZl89Fg1mrAvBV3LL/ZsrWKHDc3keD/vTcPAsrnJl3MdS5fMKBwEuDmhpnNdGk0Wty357WxWBaz1JYBoGaqbw0JWAAA5UdfyF3aOybRONXcVqnxqSeR43drBLSdAwBJVVhyv3IYX3HRMCP8vXz43LqWK16z8KVPyrwwzE2WXlq+2FypLtM4A/XOssx4M77MefIMC6ydAimLh33gYtaiuO7+fYipLlOlChNO/pxX43FM+7UuKWaL9MWaUvypmOGo+jp/y6PzbIDz/RH4T8mjaswIe22nyTR/Gbtph/58CISGGEtRNKXjE4/OD1gjodcNS2NkwNQimxjHv30rH4X4Z+JYU+I3iobpmWJ5WJsyMnS3jWkRluRgA+8djuRviK4sdIBwk2qC2AGuZ1c6EJbEN7f3sRIgtQMYd1JAiZVwYmRa08hpulvrZAzxqx/PfkaEOBFQrBwISkD2Oq3MGlDSV+sUe53TmRM1KO9y5fC8XnJHRJv5mw+iWaEIImP2muXufdm101oXNzHbs3hC2kYIFD+u1BoVDgWACUIkj2oRxMJ4p3ynlbccALUc8y0= - - secure: GWTsOe1CGvEi/n7k+c91UisQAf7UcofZKeO8EI6n0abRPQii0rfMIQ7fS2KFUyR7I/nk02YrZcd1etAGTVthc9K3YrUhM68eu+ztlUX6Sr5SM6PseYWkgf+G0I+IIoCpqSjwL/9J4jTP1hvNlP7nofUbo43OyEEX7ndNr1r8Ab0Zu48VYFj3sb3whMovakEVH5SIUe001Jix4wIZ9TYUNnSReNzMb8M+s/xK+RUnT3SYYutBbw0Dc+wTaaW/A5g1kSK35VZZ7OWN+l1Sc0x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BKW0xWkFafNyt2USJto= diff --git a/CHANGELOG.md b/CHANGELOG.md index e3af55b..adbb748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). + + ## [0.4.2] - 2018-01-02 ## Fixed - [#60](https://github.com/pryorda/vmware_exporter/pull/60) Typo Fix