| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,74 @@ | |||
| 1 | + # CI on Windows via appveyor | ||
| 2 | + environment: | ||
| 3 | + | ||
| 4 | + matrix: | ||
| 5 | + - PYTHON: "C:\\Miniconda" | ||
| 6 | + PYTHON_VERSION: "2.7" | ||
| 7 | + - PYTHON: "C:\\Miniconda" | ||
| 8 | + PYTHON_VERSION: "2.7" | ||
| 9 | + GIT_PATH: "C:\\cygwin64\\bin" | ||
| 10 | + | ||
| 11 | + - PYTHON: "C:\\Miniconda3-x64" | ||
| 12 | + PYTHON_VERSION: "3.4" | ||
| 13 | + - PYTHON: "C:\\Miniconda3-x64" | ||
| 14 | + PYTHON_VERSION: "3.4" | ||
| 15 | + GIT_PATH: "C:\\cygwin64\\bin" | ||
| 16 | + | ||
| 17 | + - PYTHON: "C:\Python35-x64" | ||
| 18 | + PYTHON_VERSION: "3.5" | ||
| 19 | + - PYTHON: "C:\Python35-x64" | ||
| 20 | + PYTHON_VERSION: "3.5" | ||
| 21 | + GIT_PATH: "C:\\cygwin64\\bin" | ||
| 22 | + | ||
| 23 | + install: | ||
| 24 | + - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH% | ||
| 25 | + | ||
| 26 | + ## Print architecture, python & git used for debugging. | ||
| 27 | + # | ||
| 28 | + - | | ||
| 29 | + uname -a | ||
| 30 | + where git | ||
| 31 | + python --version | ||
| 32 | + python -c "import struct; print(struct.calcsize('P') * 8)" | ||
| 33 | + conda info -a | ||
| 34 | + | ||
| 35 | + - conda install --yes --quiet pip | ||
| 36 | + - pip install nose wheel coveralls | ||
| 37 | + - IF "%PYTHON_VERSION%"=="2.7" ( | ||
| 38 | + pip install mock | ||
| 39 | + ) | ||
| 40 | + | ||
| 41 | + ## Copied from `init-tests-after-clone.sh`. | ||
| 42 | + # | ||
| 43 | + - | | ||
| 44 | + git submodule update --init --recursive | ||
| 45 | + git fetch --tags | ||
| 46 | + git tag __testing_point__ | ||
| 47 | + git checkout master || git checkout -b master | ||
| 48 | + git reset --hard HEAD~1 | ||
| 49 | + git reset --hard HEAD~1 | ||
| 50 | + git reset --hard HEAD~1 | ||
| 51 | + git reset --hard __testing_point__ | ||
| 52 | + | ||
| 53 | + ## For commits performed with the default user. | ||
| 54 | + - | | ||
| 55 | + git config --global user.email "travis@ci.com" | ||
| 56 | + git config --global user.name "Travis Runner" | ||
| 57 | + | ||
| 58 | + - python setup.py develop | ||
| 59 | + | ||
| 60 | + build: off | ||
| 61 | + | ||
| 62 | + test_script: | ||
| 63 | + - | | ||
| 64 | + echo "+++ Checking archives for PyPI repo..." | ||
| 65 | + python setup.py bdist_wheel | ||
| 66 | + | ||
| 67 | + - IF "%PYTHON_VERSION%"=="3.4" ( | ||
| 68 | + nosetests -v --with-coverage | ||
| 69 | + ) ELSE ( | ||
| 70 | + nosetests -v | ||
| 71 | + ) | ||
| 72 | + | ||
| 73 | + #on_success: | ||
| 74 | + # - IF "%PYTHON_VERSION%"=="3.4" (coveralls) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ Both commands will install the required package dependencies. | |||
| 31 | 31 | A distribution package can be obtained for manual installation at: | |
| 32 | 32 | ||
| 33 | 33 | http://pypi.python.org/pypi/GitPython | |
| 34 | - | ||
| 34 | + | ||
| 35 | 35 | If you like to clone from source, you can do it like so: | |
| 36 | 36 | ||
| 37 | 37 | ```bash | |
@@ -45,7 +45,7 @@ git submodule update --init --recursive | |||
| 45 | 45 | #### Leakage of System Resources | |
| 46 | 46 | ||
| 47 | 47 | GitPython is not suited for long-running processes (like daemons) as it tends to | |
| 48 | - leak system resources. It was written in a time where destructors (as implemented | ||
| 48 | + leak system resources. It was written in a time where destructors (as implemented | ||
| 49 | 49 | in the `__del__` method) still ran deterministically. | |
| 50 | 50 | ||
| 51 | 51 | In case you still want to use it in such a context, you will want to search the | |
@@ -56,7 +56,7 @@ separate process which can be dropped periodically. | |||
| 56 | 56 | ||
| 57 | 57 | ### RUNNING TESTS | |
| 58 | 58 | ||
| 59 | - *Important*: Right after cloning this repository, please be sure to have executed the `init-tests-after-clone.sh` script in the repository root. Otherwise you will encounter test failures. | ||
| 59 | + *Important*: Right after cloning this repository, please be sure to have executed the `./init-tests-after-clone.sh` script in the repository root. Otherwise you will encounter test failures. | ||
| 60 | 60 | ||
| 61 | 61 | The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox) a wrapper around virtualenv. It will take care of setting up environnements with the proper dependencies installed and execute test commands. To install it simply: | |
| 62 | 62 | ||
@@ -65,8 +65,8 @@ The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox) | |||
| 65 | 65 | Then run: | |
| 66 | 66 | ||
| 67 | 67 | tox | |
| 68 | - | ||
| 69 | - | ||
| 68 | + | ||
| 69 | + | ||
| 70 | 70 | For more fine-grained control, you can use `nose`. | |
| 71 | 71 | ||
| 72 | 72 | ### Contributions | |
@@ -95,7 +95,7 @@ Please have a look at the [contributions file][contributing]. | |||
| 95 | 95 | * Finally, set the upcoming version in the `VERSION` file, usually be | |
| 96 | 96 | incrementing the patch level, and possibly by appending `-dev`. Probably you | |
| 97 | 97 | want to `git push` once more. | |
| 98 | - | ||
| 98 | + | ||
| 99 | 99 | ### LICENSE | |
| 100 | 100 | ||
| 101 | 101 | New BSD License. See the LICENSE file. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments