代码拉取完成,页面将自动刷新
sudo: required
# Travis doesn't provide a wide variety of host environments to run on, so we
# rely on Docker to provide these instead.
services:
- docker
# It is not really needed, other than for showing correct language tag in
# Travis CI build log.
language: cpp
# The matrix of targets that we're interested in.
env:
- HOST="ubuntu:16.04"
# Before running the install phase we need to set up docker container that runs
# the target machine.
before_install:
- docker run -d --name host -v $(pwd):/travis $HOST tail -f /dev/null
- docker run -d --name dist -v $(pwd):/travis $HOST tail -f /dev/null
- docker ps
# This is another pre-install phase where we update the container that was just
# set up. I don't know why these are split, I just copied some tutorial and
# that's how they did it.
install:
- docker exec -t host bash -c "yes | apt-get update"
- docker exec -t host bash -c "yes | apt-get upgrade"
- docker exec -t host bash -c "yes | apt-get install autoconf automake build-essential git python3"
- docker exec -t dist bash -c "yes | apt-get update"
- docker exec -t dist bash -c "yes | apt-get upgrade"
- docker exec -t dist bash -c "yes | apt-get install build-essential python3"
# Here's where we actually run the test.
script:
- docker exec -t host bash -c "cd /travis && autoreconf -i"
- docker exec -t host bash -c "cd /travis && ./configure"
- docker exec -t host bash -c "cd /travis && make"
- docker exec -t host bash -c "cd /travis && make install"
- docker exec -t host bash -c "cd /travis && make check"
- docker exec -t host bash -c "cd /travis && make dist"
- docker exec -t host bash -c "cd /travis && make distcheck"
- docker exec -t dist bash -c "cd /travis && tar -xvzpf elf2hex-*.tar.gz"
- docker exec -t dist bash -c "cd /travis/elf2hex-*/ && ./configure"
- docker exec -t dist bash -c "cd /travis/elf2hex-*/ && make"
- docker exec -t dist bash -c "cd /travis/elf2hex-*/ && make install"
- docker exec -t dist bash -c "cd /travis/elf2hex-*/ && make check"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。