加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
os:
- linux
dist: xenial
sudo: required
services: docker
language: python
python:
- "3.5"
- "3.6"
- "3.7"
# Python for Mac is not yet officially supported by Travis.
# We test only Python 3.7 on macOS for now with a custom setup script.
# Python 2.7 is required for ROS, so this is tested in the ROS Dockerfile.
matrix:
include:
- os: osx
language: generic
env: PYTHON=3.7.0
- os: linux
language: python
env:
- EVO_DOCKERFILE="Dockerfile.rosmelodic"
- EVO_DOCKER_IMAGE="evoslam/evopython:rosmelodic"
before_install:
- bash .ci/mac-os_before_install.sh
install:
- |
if [ -z $EVO_DOCKERFILE ]; then
source .ci/set_pip_name.sh;
${pip} install . --upgrade;
evo_config set plot_backend Agg; # no X server
fi
script:
- |
if [ -z $EVO_DOCKERFILE ]; then
${pip} install pytest --upgrade;
pytest -sv;
else
docker build . --file $EVO_DOCKERFILE --tag $EVO_DOCKER_IMAGE || exit 1
if [[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push $EVO_DOCKER_IMAGE
fi
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化