forked from cri-o/cri-o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: go
sudo: required
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 libseccomp-dev; fi
- if [ "${TRAVIS_OS_NAME}" = linux ]; then sudo apt-get -qq install autoconf automake bison clang-format-3.9 e2fslibs-dev libfuse-dev libtool liblzma-dev gettext; fi
install:
- make install.tools
- >
if [ "{TRAVIS_OS_NAME}" = linux ]; then
OSTREE_VERSION=v2017.9;
git clone https://github.com/ostreedev/ostree ${TRAVIS_BUILD_DIR}/ostree &&
(
cd ${TRAVIS_BUILD_DIR}/ostree &&
git checkout $OSTREE_VERSION &&
./autogen.sh --prefix=/usr/local &&
make all &&
sudo make install
)
fi
before_script:
- export PATH=$HOME/gopath/bin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
jobs:
include:
- stage: Build and Verify
script:
- make .gitvalidation
- make fmt
- make lint
go: tip
- stage: Build and Verify
script:
- sudo "PATH=$PATH" make testunit
- make
go: "1.9.x"
- script:
- sudo "PATH=$PATH" make testunit
- make
go: "1.10.x"
- script:
- sudo "PATH=$PATH" make testunit
- make
go: tip
- script:
- make testunit
- make
os: osx
- stage: Integration Test
script:
- make integration
go: "1.10.x"
allow_failures:
- os: osx
notifications:
irc: "chat.freenode.net#cri-o"