Skip to content

Commit 1210ec7

Browse files
committed
apveyor: Wintest project with MINGW/Cygwin git (conda2.7&3.4/cpy-3.5)
[travisci skip]
1 parent 7842e92 commit 1210ec7

File tree

2 files changed

+80
-6
lines changed

2 files changed

+80
-6
lines changed

Diff for: .appveyor.yml

+74
Original file line numberDiff line numberDiff 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)

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Both commands will install the required package dependencies.
3131
A distribution package can be obtained for manual installation at:
3232

3333
http://pypi.python.org/pypi/GitPython
34-
34+
3535
If you like to clone from source, you can do it like so:
3636

3737
```bash
@@ -45,7 +45,7 @@ git submodule update --init --recursive
4545
#### Leakage of System Resources
4646

4747
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
4949
in the `__del__` method) still ran deterministically.
5050

5151
In case you still want to use it in such a context, you will want to search the
@@ -61,7 +61,7 @@ as they are kept alive solely by their users, or not.
6161

6262
### RUNNING TESTS
6363

64-
*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.
64+
*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.
6565

6666
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:
6767

@@ -70,8 +70,8 @@ The easiest way to run test is by using [tox](https://pypi.python.org/pypi/tox)
7070
Then run:
7171

7272
tox
73-
74-
73+
74+
7575
For more fine-grained control, you can use `nose`.
7676

7777
### Contributions
@@ -100,7 +100,7 @@ Please have a look at the [contributions file][contributing].
100100
* Finally, set the upcoming version in the `VERSION` file, usually be
101101
incrementing the patch level, and possibly by appending `-dev`. Probably you
102102
want to `git push` once more.
103-
103+
104104
### LICENSE
105105

106106
New BSD License. See the LICENSE file.

0 commit comments

Comments
 (0)