加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.37 KB
一键复制 编辑 原始数据 按行查看 历史
Sean Gillies 提交于 2020-05-07 11:20 . Merge tag '1.1.4'
dist: xenial
language: python
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- GDALINST=$HOME/gdalinstall
- GDALBUILD=$HOME/gdalbuild
- PROJINST=$HOME/gdalinstall
- PROJBUILD=$HOME/projbuild
jobs:
include:
- python: "3.6"
env:
GDALVERSION="2.3.3"
PROJVERSION="4.9.3"
- python: "3.6"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.7"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.8"
env:
GDALVERSION="2.4.4"
PROJVERSION="4.9.3"
- python: "3.6"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.7"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.8"
env:
GDALVERSION="3.0.4"
PROJVERSION="6.2.1"
- python: "3.8"
env:
GDALVERSION="master"
PROJVERSION="6.2.1"
allow_failures:
- env:
GDALVERSION="master"
PROJVERSION="6.2.1"
addons:
apt:
packages:
- libhdf5-serial-dev
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran
before_install:
- python -m pip install -U pip
- python -m pip install wheel
- export PATH=$GDALINST/gdal-$GDALVERSION/bin:$PATH
- export LD_LIBRARY_PATH=$GDALINST/gdal-$GDALVERSION/lib:$LD_LIBRARY_PATH
- . ./scripts/travis_proj_install.sh
- travis_wait 20 . ./scripts/travis_gdal_install.sh
- export GDAL_DATA=$GDALINST/gdal-$GDALVERSION/share/gdal
- export PROJ_LIB=$GDALINST/gdal-$GDALVERSION/share/proj
install:
- "if [ \"$GDALVERSION\" == \"master\" -o $(gdal-config --version) == \"$GDALVERSION\" ]; then echo \"Using gdal $GDALVERSION\"; else echo \"NOT using gdal $GDALVERSION as expected; aborting\"; exit 1; fi"
- "python -m pip wheel -r requirements-dev.txt"
- "python -m pip install -r requirements-dev.txt"
- "GDAL_CONFIG=$GDALINST/gdal-$GDALVERSION/bin/gdal-config python -m pip install --no-deps --force-reinstall --no-use-pep517 -e ."
- "python -m pip install coveralls>=1.1"
- "rio --version"
- "rio --gdal-version"
- "python -m pip list"
script:
- python -m pytest -v -m "not wheel" -rxXs --cov rasterio --cov-report term-missing
after_success:
- coveralls || echo "!! intermittent coveralls failure"
cache:
directories:
- $GDALINST
- ~/.cache/pip
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化