Skip to content

Commit

Permalink
chore(ci) setup Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hbagdi committed Jul 24, 2018
1 parent 8384fd2 commit 1003587
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
dist: trusty
sudo: required

language: java

jdk:
- oraclejdk8

notifications:
email: false

services:
- redis-server

addons:
postgresql: "9.5"
apt:
packages:
- net-tools
- libpcre3-dev
- build-essential

services:
- redis
- docker

env:
global:
- LUAROCKS=2.4.3
- OPENSSL=1.0.2n
- CASSANDRA_BASE=2.2.12
- CASSANDRA_LATEST=3.9
- OPENRESTY_BASE=1.13.6.2
- OPENRESTY_LATEST=1.13.6.2
- DOWNLOAD_CACHE=$HOME/download-cache
- INSTALL_CACHE=$HOME/install-cache
- BUSTED_ARGS="-o gtest -v --exclude-tags=flaky,ipv6"
- PLUGIN_NAME=prometheus
- KONG_TEST_PLUGINS=bundled,$PLUGIN_NAME
- KONG_PLUGINS=bundled,$PLUGIN_NAME

matrix:
- OPENRESTY=$OPENRESTY_BASE
CASSANDRA=$CASSANDRA_BASE
- OPENRESTY=$OPENRESTY_LATEST
CASSANDRA=$CASSANDRA_LATEST

before_install:
- git clone https://$GITHUB_TOKEN:@github.com/Kong/kong-ci.git
- source kong-ci/setup_env.sh
- git clone https://github.com/Kong/kong.git kong-ce

install:
- luarocks make
- cd kong-ce
- make dev
- cp -r ../spec/fixtures/prometheus spec/fixtures/
- createuser --createdb kong
- createdb -U kong kong_tests

script:
- bin/busted $BUSTED_ARGS ../spec

cache:
apt: true
pip: true
directories:
- $DOWNLOAD_CACHE
- $INSTALL_CACHE
- $HOME/.ccm/repository

0 comments on commit 1003587

Please sign in to comment.