Skip to content

Commit

Permalink
Makefile,Vagrantfile: make centos the default (#332)
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
  • Loading branch information
unclejack authored and shaleman committed Apr 27, 2016
1 parent 508bb18 commit 69b3573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ TAR_FILENAME := $(NAME)-$(VERSION).$(TAR_EXT)
TAR_LOC := .
TAR_FILE := $(TAR_LOC)/$(TAR_FILENAME)

all: build unit-test system-test centos-tests
all: build unit-test system-test ubuntu-tests

# 'all-CI' target is used by the scripts/CI.sh that passes appropriate set of
# ENV variables (from the jenkins job) to run OS (centos, ubuntu etc) and
# sandbox specific(vagrant, docker-in-docker)
all-CI: build unit-test system-test

test: build unit-test system-test centos-tests
test: build unit-test system-test ubuntu-tests

default: build

Expand Down Expand Up @@ -80,8 +80,8 @@ mesos-docker-destroy:
cd vagrant/mesos-docker && vagrant destroy -f


demo-centos:
CONTIV_NODE_OS=centos make demo
demo-ubuntu:
CONTIV_NODE_OS=ubuntu make demo

stop:
CONTIV_NODES=$${CONTIV_NODES:-2} vagrant destroy -f
Expand All @@ -97,8 +97,8 @@ ssh:
unit-test: stop clean build
./scripts/unittests -vagrant

centos-tests:
CONTIV_NODE_OS=centos make clean build unit-test system-test stop
ubuntu-tests:
CONTIV_NODE_OS=ubuntu make clean build unit-test system-test stop

system-test:start
godep go test -v -timeout 240m ./systemtests -check.v
Expand Down
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ SCRIPT

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if ENV['CONTIV_NODE_OS'] && ENV['CONTIV_NODE_OS'] == "centos" then
config.vm.box = "contiv/centos71-netplugin"
else
if ENV['CONTIV_NODE_OS'] && ENV['CONTIV_NODE_OS'] == "ubuntu" then
config.vm.box = "contiv/ubuntu1504-netplugin"
else
config.vm.box = "contiv/centos71-netplugin"
end
config.vm.provider 'virtualbox' do |v|
v.linked_clone = true if Vagrant::VERSION =~ /^1.8/
Expand Down

0 comments on commit 69b3573

Please sign in to comment.