代码拉取完成,页面将自动刷新
language: cpp
sudo: required
dist: xenial
cache:
apt: true
env:
global:
- REPO_SLUG=$TRAVIS_REPO_SLUG
- IS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
- BUILD_DIR=$TRAVIS_BUILD_DIR
- BUILD_DARTPY=OFF
- CODECOV=OFF
matrix:
fast_finish: true
include:
- os: linux
env:
- BUILD_NAME=XENIAL_DEBUG_CODECOV
- BUILD_TYPE=Debug
- COMPILER=gcc
- CODECOV=ON
- os: linux
env:
- BUILD_NAME=XENIAL_32BIT_DEBUG_CODECOV
- DOCKERFILE="Dockerfile.ubuntu-xenial-32bit"
- BUILD_TYPE=Release # TODO: Tests fail in debug mode
- COMPILER=gcc
services: docker
- os: linux
env:
- BUILD_DOCS=ON
- DOCKERFILE="Dockerfile.ubuntu-bionic"
- BUILD_TYPE=Release
- COMPILER=gcc
services: docker
install:
- if [ -n "$DOCKERFILE" ]; then
docker build -t "${DOCKERFILE,,}" -f ".ci/docker/$DOCKERFILE" .;
docker run -itd -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR --env-file .ci/docker/env.list --name dart-docker "${DOCKERFILE,,}";
docker exec dart-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && ./.ci/install.sh";
else
sudo -E .ci/install.sh;
fi
script:
- if [ -n "$DOCKERFILE" ]; then
docker exec dart-docker /bin/sh -c "cd $TRAVIS_BUILD_DIR && ./.ci/script.sh";
else
sudo -E .ci/script.sh;
fi
deploy:
github-token: $GITHUB_TOKEN
provider: pages
skip-cleanup: true
local-dir: gh-pages
keep-history: false
verbose: true
on:
branch: master
condition: $BUILD_DOCS == ON && $TRAVIS_EVENT_TYPE != cron
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。