mirror of
https://github.com/containers/podman
synced 2024-10-20 01:03:51 +00:00
b1f63aa0cd
Just in case their output depends on the target GOOS. Lint, at least, does care, because it can pass on Linux [1] and fail on OS X [2] with the same code. [1]: https://travis-ci.org/projectatomic/libpod/jobs/400555936#L856 [2]: https://travis-ci.org/projectatomic/libpod/jobs/400555937#L153 Signed-off-by: W. Trevor King <wking@tremily.us> Closes: #1034 Approved by: baude
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
language: go
|
|
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo apt-get -qq update; fi
|
|
- if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo apt-get -qq install btrfs-tools libdevmapper-dev libgpgme11-dev libapparmor-dev; fi
|
|
- if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo apt-get -qq install autoconf automake bison e2fslibs-dev libfuse-dev libtool liblzma-dev gettext python3-setuptools python3-dateutil; fi
|
|
- if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo make install.libseccomp.sudo; fi
|
|
|
|
install:
|
|
- make install.tools
|
|
|
|
before_script:
|
|
- export PATH=$HOME/gopath/bin:$PATH
|
|
- export LD_LIBRARY_PATH=/usr/local/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
env:
|
|
global:
|
|
- TRAVIS=1
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Build and Verify
|
|
script:
|
|
- make gofmt
|
|
- make lint
|
|
go: 1.10.x
|
|
- script:
|
|
- make gofmt
|
|
- make lint
|
|
go: 1.10.x
|
|
os: osx
|
|
- script:
|
|
- make testunit
|
|
go: 1.9.x
|
|
- stage: Build and Verify
|
|
script:
|
|
- make testunit
|
|
go: 1.10.x
|
|
- script:
|
|
- make --keep-going local-cross
|
|
go: 1.10.x
|
|
- script:
|
|
- make --keep-going local-cross
|
|
go: 1.10.x
|
|
os: osx
|
|
env: ALLOWED_TO_FAIL=true
|
|
- stage: Integration Test
|
|
script:
|
|
- make all
|
|
- make integration
|
|
go: 1.9.x
|
|
allow_failures:
|
|
- env: ALLOWED_TO_FAIL=true
|
|
|
|
notifications:
|
|
irc: "chat.freenode.net#podman"
|