代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Muen 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
sudo: required
dist: trusty
language: generic
cache:
ccache: true
directories:
- $HOME/.ccache
git:
depth: 1
submodules: false
services:
- docker
notifications:
email:
env:
global:
- CCACHE_HOST=$HOME/.ccache
- CCACHE_DOCKER=/home/user/.ccache
- DOCKER_IMG=codelabsch/muen-dev-env
- DOCKER_CACHE_BRANCH=devel
- BUILD_OUTPUT_VERBOSE=1
- BUILD_OUTPUT_SYNC=line
install:
- git config --file=.gitmodules submodule.components/linux/src.url https://git.codelabs.ch/muen/linux.git
- git config --file=.gitmodules submodule.tools/mugenschedcfg.url https://git.codelabs.ch/muen/mugenschedcfg.git
- git config --file=.gitmodules submodule.components/libxhcidbg.url https://git.codelabs.ch/libxhcidbg.git
- git submodule update --init --depth=1
- sudo sh -c 'echo "max_size = 2.0G" > ${CCACHE_HOST}/ccache.conf'
- sudo chown -R 1000:1000 ${CCACHE_HOST}
- sudo chown -R 1000:1000 ${TRAVIS_BUILD_DIR}
- df -alh
- ccache -z
- DOCKER_PULL() { docker pull
${DOCKER_IMG}:${DISTRO_NAME}-${DISTRO_VERSION}_muen-${DOCKER_CACHE_BRANCH} || true;
}
- DOCKER_BUILD() { docker build
--cache-from ${DOCKER_IMG}:${DISTRO_NAME}-${DISTRO_VERSION}_muen-${DOCKER_CACHE_BRANCH}
--build-arg distro_name=${DISTRO_NAME}
--build-arg distro_version=${DISTRO_VERSION}
--tag ${DOCKER_IMG}:run
--tag ${DOCKER_IMG}:latest
--tag ${DOCKER_IMG}:${DISTRO_NAME}-${DISTRO_VERSION}_muen-${TRAVIS_BRANCH}
-f tools/docker/Dockerfile.muen-dev-env .;
}
- DOCKER_PUSH() {
if [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_BRANCH" = "devel" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker push ${DOCKER_IMG}:${DISTRO_NAME}-${DISTRO_VERSION}_muen-${TRAVIS_BRANCH};
if [ "$TRAVIS_BRANCH" = "devel" ] && [ "$DISTRO_NAME" = "debian" ]; then
docker push ${DOCKER_IMG}:latest;
fi
fi
}
- DOCKER_RUN() { docker run
-v ${CCACHE_HOST}:${CCACHE_DOCKER}
-v ${TRAVIS_BUILD_DIR}:/mnt
-e BUILD_OUTPUT_VERBOSE=${BUILD_OUTPUT_VERBOSE}
-e BUILD_OUTPUT_SYNC=${BUILD_OUTPUT_SYNC}
-w /mnt
${DOCKER_IMG}:run
/bin/sh -c "make -j2 iso && ccache -s && df -alh";
}
jobs:
include:
- stage: Build on debian and ubuntu
script:
- export DISTRO_NAME=debian
- export DISTRO_VERSION=stretch
- DOCKER_PULL
- DOCKER_BUILD
- DOCKER_PUSH
- DOCKER_RUN
- script:
- export DISTRO_NAME=debian
- export DISTRO_VERSION=buster
- DOCKER_PULL
- DOCKER_BUILD
- DOCKER_PUSH
- DOCKER_RUN
- script:
- export DISTRO_NAME=ubuntu
- export DISTRO_VERSION=bionic
- DOCKER_PULL
- DOCKER_BUILD
- DOCKER_PUSH
- DOCKER_RUN
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。