forked from Kong/kong-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 1.22 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
dist: bionic
language: python
# Cache the big Vagrant boxes
cache:
directories:
- /home/travis/.vagrant.d/boxes
install:
# Install libvrt & KVM (see https://github.com/alvistack/ansible-role-virtualbox/blob/master/.travis.yml)
- sudo apt-get update && sudo apt-get install -y bridge-utils dnsmasq-base ebtables libvirt-bin libvirt-dev qemu-kvm qemu-utils ruby-dev
# Download Vagrant & Install Vagrant package
- sudo wget -nv https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.deb
- sudo dpkg -i vagrant_2.2.7_x86_64.deb
# Vagrant correctly installed?
- vagrant --version
# Install vagrant-libvirt Vagrant plugin
- sudo vagrant plugin install vagrant-libvirt
- git clone https://github.com/Kong/kong.git
- git clone https://github.com/Kong/kong-plugin.git
script:
- sudo vagrant validate
- sudo vagrant up --provider=libvirt
- sudo vagrant status
- sudo vagrant ssh -c "cd /kong; git checkout \$KONG_VERSION_BUILD; make dev"
- sudo vagrant ssh -c "cd /kong; bin/busted -v -o gtest /kong-plugin/spec"
- sudo vagrant ssh -c "cd /kong; bin/kong migrations bootstrap"
- sudo vagrant ssh -c "cd /kong; bin/kong start"
- sudo vagrant ssh -c "http localhost:8001"