Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Commit fb34a20

Browse files
committed
Move commands into CI folder
1 parent 0d52aae commit fb34a20

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

.travis.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,13 @@ matrix:
1717
- python: pypy3
1818

1919
install:
20-
- "pip install -U -r requirements.txt"
21-
- "pip install ."
22-
- "pip freeze"
20+
- sh ci/install.sh
2321

2422
script:
25-
- python setup.py test
26-
- pydocstyle everywhere
27-
- mypy everywhere
23+
- sh ci/script.sh
2824

2925
after_success:
30-
- coveralls
31-
- pip install -U -r requirements-docs.txt
32-
- ./build_doc.py
26+
- sh ci/after_success.sh
3327

3428
deploy:
3529
- provider: releases

ci/after_success.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coveralls
2+
3+
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
4+
[ "$TRAVIS_PULL_REQUEST" == "false" ] &&
5+
[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then
6+
pip install -U -r requirements-docs.txt
7+
./build_doc.py
8+
fi

ci/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pip install -U -r requirements.txt
2+
pip install .
3+
pip freeze

ci/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python setup.py test
2+
pydocstyle everywhere
3+
mypy everywhere

0 commit comments

Comments
 (0)