Split script.sh into build.sh and test.sh

This commit is contained in:
Hugo 2019-09-23 17:02:09 +03:00
parent 7c7c53fbb6
commit ac5642dc76
4 changed files with 14 additions and 6 deletions

View File

@ -45,9 +45,13 @@ jobs:
run: |
.github/workflows/macos-install.sh
- name: Build
run: |
.travis/build.sh
- name: Test
run: |
.travis/script.sh
.travis/test.sh
- name: Docs
if: matrix.python-version == 2.7

View File

@ -64,7 +64,8 @@ script:
if [ "$LINT" == "true" ]; then
tox -e lint
elif [ "$DOCKER" == "" ]; then
.travis/script.sh
.travis/build.sh
.travis/test.sh
elif [ "$DOCKER" ]; then
# the Pillow user in the docker container is UID 1000
sudo chown -R 1000 $TRAVIS_BUILD_DIR

7
.travis/build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
coverage erase
make clean
make install-coverage

View File

@ -2,10 +2,6 @@
set -e
coverage erase
make clean
make install-coverage
python -m pytest -v -x --cov PIL --cov-report term Tests
# Docs