mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Split script.sh into build.sh and test.sh
This commit is contained in:
parent
7c7c53fbb6
commit
ac5642dc76
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -45,9 +45,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
.github/workflows/macos-install.sh
|
.github/workflows/macos-install.sh
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
.travis/build.sh
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
.travis/script.sh
|
.travis/test.sh
|
||||||
|
|
||||||
- name: Docs
|
- name: Docs
|
||||||
if: matrix.python-version == 2.7
|
if: matrix.python-version == 2.7
|
||||||
|
|
|
@ -64,7 +64,8 @@ script:
|
||||||
if [ "$LINT" == "true" ]; then
|
if [ "$LINT" == "true" ]; then
|
||||||
tox -e lint
|
tox -e lint
|
||||||
elif [ "$DOCKER" == "" ]; then
|
elif [ "$DOCKER" == "" ]; then
|
||||||
.travis/script.sh
|
.travis/build.sh
|
||||||
|
.travis/test.sh
|
||||||
elif [ "$DOCKER" ]; then
|
elif [ "$DOCKER" ]; then
|
||||||
# the Pillow user in the docker container is UID 1000
|
# the Pillow user in the docker container is UID 1000
|
||||||
sudo chown -R 1000 $TRAVIS_BUILD_DIR
|
sudo chown -R 1000 $TRAVIS_BUILD_DIR
|
||||||
|
|
7
.travis/build.sh
Executable file
7
.travis/build.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
coverage erase
|
||||||
|
make clean
|
||||||
|
make install-coverage
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
coverage erase
|
|
||||||
make clean
|
|
||||||
make install-coverage
|
|
||||||
|
|
||||||
python -m pytest -v -x --cov PIL --cov-report term Tests
|
python -m pytest -v -x --cov PIL --cov-report term Tests
|
||||||
|
|
||||||
# Docs
|
# Docs
|
Loading…
Reference in New Issue
Block a user