3f2f3acf37
Some steps are now being run with Go tip and not in all the different versions, there were also moved to their own block so they will fail fast and in the mean time the unit test for the different versions can start. Also, "make docs" was removed because it's already being done by "make" without any argument. Fixes #1400. Signed-off-by: Álex González <agonzalezro@gmail.com>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
language: go
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get -qq install btrfs-tools libdevmapper-dev libgpgme11-dev libapparmor-dev libseccomp-dev
|
|
- sudo apt-get -qq install autoconf automake bison e2fslibs-dev libfuse-dev libtool liblzma-dev gettext
|
|
|
|
install:
|
|
- make install.tools
|
|
- OSTREE_VERSION=v2017.9
|
|
- git clone https://github.com/ostreedev/ostree ${TRAVIS_BUILD_DIR}/ostree
|
|
- pushd ${TRAVIS_BUILD_DIR}/ostree
|
|
- git checkout $OSTREE_VERSION
|
|
- ./autogen.sh --prefix=/usr/local
|
|
- make all
|
|
- sudo make install
|
|
- popd
|
|
|
|
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 gofmt
|
|
- make lint
|
|
go: tip
|
|
- stage: Build and Verify
|
|
script:
|
|
- make testunit
|
|
- make
|
|
go: 1.8.x
|
|
- script:
|
|
- make testunit
|
|
- make
|
|
go: 1.9.x
|
|
- script:
|
|
- make testunit
|
|
- make
|
|
go: tip
|
|
- stage: Integration Test
|
|
script:
|
|
- make integration
|
|
go: 1.9.x
|
|
|
|
notifications:
|
|
irc: "chat.freenode.net#cri-o"
|