Skip to content

Commit

Permalink
Fixing Travis OSX (#46)
Browse files Browse the repository at this point in the history
* Fixing Travis and AppVeyor

* Fixing Travis OSX
* Travis upgrade xcode image
* Removed Pipfile.lock
* Pylint: use errors-only flag
* Adds pipenv skip-lock flag.
* AppVeyor: remove python 2.7 testing.
  • Loading branch information
LuqueDaniel authored Feb 27, 2020
1 parent 7fc17a2 commit 0948d6f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 365 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.pyd
*.egg-info
__pycache__
Pipfile.lock

# ignore test file
.pytest_cache
Expand Down
23 changes: 17 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,34 @@ matrix:

# OSX ENV
- os: osx
osx_image: xcode9.3
osx_image: xcode9.4
env: PYTHON_VERSION=2.7
language: generic

- os: osx
osx_image: xcode9.3
osx_image: xcode9.4
env: PYTHON_VERSION=3.7
language: generic

branches:
- master

install:
- pip install pipenv
- pipenv install --dev
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
pip install --user pipenv;
python -m pipenv install --dev --skip-lock;
else
pip install pipenv;
pipenv install --dev --skip-lock;
fi

script:
- pylint pybooru/
# Run test script, but at the moment is a provisional test
- python provisional_test.py
# TODO: configure pylint properly
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
python -m pipenv run pylint --errors-only pybooru/;
python -m pipenv run python provisional_test.py;
else
pylint --errors-only pybooru/ ;
python provisional_test.py;
fi
Loading

0 comments on commit 0948d6f

Please sign in to comment.