1 Star 0 Fork 1

李雷 / libcoap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
sudo: required
language: c
compiler:
- gcc
- clang
services:
- docker
env:
- PLATFORM=posix TESTS=yes TLS=no
- PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=yes
- PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=no
- PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=yes EPOLL=no
- PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=no EPOLL=no
- PLATFORM=posix TESTS=yes TLS=openssl
- PLATFORM=posix TESTS=yes TLS=tinydtls
matrix:
exclude:
- compiler: clang
env: PLATFORM=posix TESTS=yes TLS=no
- compiler: clang
env: PLATFORM=posix TESTS=yes TLS=tinydtls
- compiler: clang
env: PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=yes EPOLL=no
- compiler: clang
env: PLATFORM=posix TESTS=yes TLS=gnutls SMALL_STACK=no EPOLL=no
before_install:
- docker build -t obgm/libcoap:travis-env .
branches:
only:
- master
- develop
- /^release-.*$/
- travis-test
stages:
- test
- other platforms
- dist
jobs:
include:
- stage: other platforms
compiler: gcc
env:
- PLATFORM=contiki TLS=no
script:
- docker run -e CC -e PLATFORM -e TLS obgm/libcoap:travis-env /bin/sh -c "scripts/build.sh"
- stage: other platforms
compiler: gcc
env:
- PLATFORM=lwip TLS=no
script:
- docker run -e CC -e PLATFORM -e TLS obgm/libcoap:travis-env /bin/sh -c "scripts/build.sh"
- stage: dist
compiler: gcc
env:
- PLATFORM=posix TESTS=yes TLS=no DOCS=yes
before_script:
script:
- docker run -e CC -e PLATFORM -e TESTS -e DOCS -e TLS obgm/libcoap:travis-env /bin/sh -c "scripts/dist.sh"
# Docker disables IPv6 in containers by default, so re-enable it.
before_script:
# `daemon.json` is normally missing, but let's log it in case that changes.
- sudo touch /etc/docker/daemon.json
- sudo cat /etc/docker/daemon.json
- sudo service docker stop
# This needs YAML quoting because of the curly braces.
- 'echo ''{"ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64"}'' | sudo tee /etc/docker/daemon.json'
- sudo service docker start
# Fail early if docker failed on start -- add `- sudo dockerd` to debug.
- sudo docker info
# Paranoia log: what if our config got overwritten?
- sudo cat /etc/docker/daemon.json
script:
- docker run -e CC -e PLATFORM -e TESTS -e DOCS -e TLS -e EPOLL -e SMALL_STACK obgm/libcoap:travis-env /bin/sh -c "scripts/build.sh"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/backbus/libcoap.git
git@gitee.com:backbus/libcoap.git
backbus
libcoap
libcoap
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891