Browse Source

Add vagrant_test to Makefile for integration tests

pull/943/head
Ethan Frey 7 years ago
parent
commit
c771964a40
2 changed files with 15 additions and 5 deletions
  1. +6
    -0
      Makefile
  2. +9
    -5
      Vagrantfile

+ 6
- 0
Makefile View File

@ -43,6 +43,12 @@ test_release:
test100:
@for i in {1..100}; do make test; done
vagrant_test:
vagrant up
vagrant ssh -c 'make install'
vagrant ssh -c 'make test_race'
vagrant ssh -c 'make test_integrations'
draw_deps:
# requires brew install graphviz or apt-get install graphviz
go get github.com/RobotsAndPencils/goviz


+ 9
- 5
Vagrantfile View File

@ -29,16 +29,20 @@ Vagrant.configure("2") do |config|
# needed for docker
usermod -a -G docker ubuntu
mkdir -p /home/ubuntu/go/bin
echo 'export PATH=$PATH:/usr/lib/go-1.9/bin:/home/ubuntu/go/bin' >> /home/ubuntu/.bash_profile
echo 'export GOPATH=/home/ubuntu/go' >> /home/ubuntu/.bash_profile
echo 'export LC_ALL=en_US.UTF-8' >> /home/ubuntu/.bash_profile
# use "EOF" not EOF to avoid variable substitution of $PATH
cat << "EOF" >> /home/ubuntu/.bash_profile
export PATH=$PATH:/usr/lib/go-1.9/bin:/home/ubuntu/go/bin
export GOPATH=/home/ubuntu/go
export LC_ALL=en_US.UTF-8
cd go/src/github.com/tendermint/tendermint
EOF
mkdir -p /home/ubuntu/go/bin
mkdir -p /home/ubuntu/go/src/github.com/tendermint
ln -s /vagrant /home/ubuntu/go/src/github.com/tendermint/tendermint
chown -R ubuntu:ubuntu /home/ubuntu/go
chown ubuntu:ubuntu /home/ubuntu/.bash_profile
# get all deps and tools, ready to install/test
su - ubuntu -c 'cd /home/ubuntu/go/src/github.com/tendermint/tendermint && make get_vendor_deps && make tools'


Loading…
Cancel
Save