From 678f17208b4f0152232367c2b15752e501b310c8 Mon Sep 17 00:00:00 2001 From: "Lester James V. Miranda" Date: Sun, 7 Apr 2019 12:29:56 +0800 Subject: [PATCH] [WIP] Update Azure pipelines --- .travis.yml | 32 -------------------------------- azure-pipelines.yml | 15 +++++---------- 2 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1c6a5e5f..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -# This file was autogenerated and will overwrite each time you run travis_pypi_setup.py -deploy: - provider: pypi - distributions: sdist bdist_wheel - user: ljvmiranda - password: - secure: !!binary | - aE5ibm05THViMTZGcXpzd1lQNnhiV0Y5ME44Y3VySm52aVVwbmNJeG5VVklhSWFjd1RaUE1ENWEw - eUNJd2ZhcWNFM1h6eXFDSHVnT2ZjbllRVHAyV1VwR1A3ekdHN3JnWTJ6TkZNS2hKUTZnMTFiQXY4 - WTQ2MGJqSjh1UzUyc2NmUXFqWkRWZDAyVWhiSStoclNIZENWZFUwS3NuSUQwQ2xST1NzcU1wWXlL - ZmtRUGhJZGJhaGZpOW41S1hDS2FXSFdXU296cWNwL1ZLNXppdmowQzdsYUdnVlQ2dm5Gamk4Y0I5 - Y29RbENKWU5MU1Z2UFlicFFnQS9Fc0t0Qk5aSGJIdFk0NGhneWtUU0pmMEJxL3VFUmJ5QVVoUU42 - VG9DeTNyWDI5Ung1c2FVMm9DYW1YcGhodlIvTWNlOEt2Ri9NeW9LK2pVNEZuNUdZOTNhS0lyUlR2 - YjZ4eERNakJFd0MrZXAzQTgyY0lONmJpcVZOZW5EUDBnMlRMUTYrSzdrSVN5dkExcFRzRmlkbFEy - cWNUdTZmb2VrZFdaaVk4ekxvS29uTmJWc2x5MWVQNWZoQUVlZHBRK2pvMmE4UThMTjA5OEt2eXgz - dE9CM2w1RDZid1dncEluU1RHa0JyNXVveVVWWEh1Sm4vUkFlSXdobjN0c0lFTEtZSEdTYTc5UVF2 - czhEWmFHbCtjdDA4MlY5NXlNYWhQcDYrVC93T01iTGRCbi8yQnVLeGdtc3BibEYrUWxJbXlIdmdK - b2ZLRndNSDlXVk82UHR5T0c0K3F4VWxCRTFEOXYvVkRZYjM2cGpuMXBGc2xEZC9HOXNwRXNDdjk3 - QVR6ZVNDQ3p5OTR4SHowWDdiTEFhcEN1WEdtT3FGWlU0NGhkcXRXT1BuSWRyS0FDRTc5MXBoSmM9 - true: - python: 2.7 - repo: ljvmiranda921/pyswarms - tags: true -install: - - sudo apt-get update - - sudo apt-get install libav-tools - - pip install -U tox-travis -language: python -python: - - 3.6 - - 3.5 -script: tox diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e4f901a1..2e0141cc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,16 +27,11 @@ jobs: versionSpec: '$(python.version)' architecture: 'x64' - - script: python -m pip install --upgrade pip && pip install -r requirements.txt + - script: python -m pip install --upgrade pip && pip install -r requirements-dev.txt displayName: 'Install dependencies' - - script: | - pip install pytest - pytest tests --junitxml=junit/test-results.xml - displayName: 'pytest' + - script: pip install tox + displayName: 'Install Tox' - - task: PublishTestResults@2 - inputs: - testResultsFiles: '**/test-results.xml' - testRunTitle: 'Python $(python.version)' - condition: succeededOrFailed() + - script: tox -e py + displayName: 'Run Tox'