Skip to content

Commit

Permalink
Final fixes for .travis.yml, appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Oct 12, 2017
1 parent f3bd86b commit 8fcedf5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 67 deletions.
22 changes: 15 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
language: c

os:
- linux
- osx

compiler:
- gcc

python:
- "2.7"
matrix:
include:
- python: "2.7"
os: linux
- python: "2.7"
os: osx
- python: "2.6"
os: osx
- python: "2.5"
os: osx

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pip; pip install wheel; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; sudo apt-get install -qq python-pip; sudo pip install wheel; fi

after_install:
- ls pyrxvm/dist
- echo $python

script:
# Build C lib
- ./autogen.sh
Expand All @@ -27,7 +35,7 @@ script:
- python setup.py build
- python setup.py bdist_wheel
- sudo pip install . --upgrade
- python setup.py test
- python pyrxvm/test/test.py

deploy:
provider: releases
Expand Down
66 changes: 6 additions & 60 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ environment:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"

matrix:
# Pre-installed Python versions, which Appveyor may upgrade to
# a later point release.
# See: http://www.appveyor.com/docs/installed-software#python

- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x" # currently 2.7.9
PYTHON_ARCH: "32"
Expand All @@ -18,61 +14,12 @@ environment:
PYTHON_VERSION: "2.7.x" # currently 2.7.9
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python270"
PYTHON_VERSION: "2.7.0"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python270-x64"
PYTHON_VERSION: "2.7.0"
PYTHON_ARCH: "64"


- PYTHON: "C:\\Python27.14"
PYTHON_VERSION: "2.7.14"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.14-x64"
PYTHON_VERSION: "2.7.14"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27.13"
PYTHON_VERSION: "2.7.13"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.13-x64"
PYTHON_VERSION: "2.7.13"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27.12"
PYTHON_VERSION: "2.7.12"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.12-x64"
PYTHON_VERSION: "2.7.12"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27.11"
PYTHON_VERSION: "2.7.11"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.11-x64"
PYTHON_VERSION: "2.7.11"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27.10"
PYTHON_VERSION: "2.7.10"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.10-x64"
PYTHON_VERSION: "2.7.10"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python27.9"
PYTHON_VERSION: "2.7.9"
- PYTHON: "C:\\Python26"
PYTHON_VERSION: "2.6.x" # currently 2.7.9
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27.9-x64"
PYTHON_VERSION: "2.7.9"
- PYTHON: "C:\\Python26-x64"
PYTHON_VERSION: "2.6.x" # currently 2.7.9
PYTHON_ARCH: "64"

install:
Expand Down Expand Up @@ -101,18 +48,17 @@ test_script:
# Build extension
- "%CMD_IN_ENV% python setup.py build"
- "%CMD_IN_ENV% pip install . --upgrade"
- "%CMD_IN_ENV% python setup.py test"
- "%CMD_IN_ENV% python pyrxvm/test/test.py"

after_test:
# If tests are successful, create binary packages for the project.
- "%CMD_IN_ENV% python setup.py bdist_wheel"
- "%CMD_IN_ENV% python setup.py bdist_wininst"
- "%CMD_IN_ENV% python setup.py bdist_msi"
- "move \"pyrxvm/dist\" \"python_%PYTHON_VERSION%_%PYTHON_ARCH%\""

artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: python_$(PYTHON_VERSION)_$(PYTHON_ARCH)\*
- path: pyrxvm/dist/*

#on_success:
# - TODO: upload the content of dist/*.whl to a public wheelhouse
Expand Down
7 changes: 7 additions & 0 deletions pyrxvm/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ def test_match(self):
self.assertTrue(p.match("azbc"))
self.assertTrue(p.match("azzzzzbcc"))
self.assertFalse(p.match("ab"))

def main():
suite = unittest.TestLoader().loadTestsFromTestCase(RXVMTest)
unittest.TextTestRunner(verbosity=2).run(suite)

if __name__ == '__main__':
main()

0 comments on commit 8fcedf5

Please sign in to comment.