Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ matrix:
- go: 1.7

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq autoconf automake pkg-config libdevmapper-dev libvirt-dev libvirt-bin wget libaio1 libpixman-1-0
- wget https://s3-us-west-1.amazonaws.com/hypercontainer-download/qemu-hyper/qemu-hyper_2.4.1-1_amd64.deb && sudo dpkg -i --force-all qemu-hyper_2.4.1-1_amd64.deb
- git clone https://github.com/hyperhq/hyperstart.git ${GOPATH}/src/github.com/hyperhq/hyperstart
- cd ${TRAVIS_BUILD_DIR} && hack/ci-setup.sh

# override the default `install`, otherwise default `install` will export ${TRAVIS_BUILD_DIR}/Godeps/_workspace as GOPATH
# see https://docs.travis-ci.com/user/languages/go#Dependency-Management
Expand All @@ -21,7 +18,11 @@ install:
- cd ${TRAVIS_BUILD_DIR}
- hack/verify-gofmt.sh
- hack/validate-vet.sh
- ./autogen.sh && ./configure && make && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} make install
- ./autogen.sh && ./configure --without-xen && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} make install

script:
- cd ${TRAVIS_BUILD_DIR} && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} hack/test-cmd.sh
#- cd ${TRAVIS_BUILD_DIR} && sudo GOPATH=${GOPATH} PATH=${PATH} GOROOT=${GOROOT} hack/test-cmd.sh
- hack/functional-test.sh

after_failure:
- hack/.ci/ci-teardown.sh
49 changes: 49 additions & 0 deletions hack/.cc-configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash
# This file is part of cc-oci-runtime.
#
# Copyright (C) 2017 Intel Corporation
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

set -e -x

source $(dirname "$0")/lib/ci-common.sh

cd $CC_ROOT

configure_opts=""

# disable uesless ones for runv
configure_opts+=" --disable-code-coverage"
configure_opts+=" --disable-tests"
configure_opts+=" --disable-cppcheck"
configure_opts+=" --disable-valgrind"
configure_opts+=" --disable-valgrind-helgrind"
configure_opts+=" --disable-valgrind-drd"
configure_opts+=" --disable-silent-rules"

# additional controls
configure_opts+=" --srcdir=\"${CC_ROOT}\""
configure_opts+=" --enable-auto-bundle-creation"
configure_opts+=" --with-auto-bundle-creation-path=\"${BUNDLE_PATH}\""
# fake hyperstart initrd as clear containers image
configure_opts+=" --with-cc-image=\"${HYPERSTART_INITRD}\""
# fake hyperstart kernel as clear containers kernel
configure_opts+=" --with-cc-kernel=\"${HYPERSTART_KERNEL}\""

# Test enable
configure_opts+=" --enable-functional-tests"

eval ./autogen.sh "$configure_opts"
Loading