language: erlang

env:
  - LUA=""

services:
  - cassandra

branches:
  only:
    - master

before_install:
  - sudo apt-get update
  - sudo apt-get install libreadline-dev libncurses5-dev libpcre3 libpcre3-dev libssl-dev perl make lua5.1 lua5.1-dev
  - wget http://openresty.org/download/ngx_openresty-1.7.7.1.tar.gz
  - tar xzf ngx_openresty-1.7.7.1.tar.gz
  - cd ngx_openresty-1.7.7.1/
  - ./configure
  - make
  - sudo make install
  - popd
  - export PATH=$PATH:/usr/local/openresty/nginx/sbin/
  - wget http://luarocks.org/releases/luarocks-2.1.2.tar.gz
  - tar xzf luarocks-2.1.2.tar.gz
  - cd luarocks-2.1.2
  - ./configure
  - make build
  - sudo make install
  - popd

install:
  - sudo apt-get install sqlite3 libsqlite3-dev
  - sudo luarocks install lrexlib-pcre PCRE_LIBDIR=$(dirname `sudo find / -type f -name "libpcre.so*" -print -quit`)
  - sudo luarocks install luasec OPENSSL_LIBDIR=$(dirname `sudo find / -type f -name "libssl.so*" -print -quit`)
  - sudo make global

script: "make test-all"

language: erlang

env:
  - LUA=""

services:
  - cassandra

branches:
  only:
    - master

before_install:
  - sudo apt-get update
  - sudo apt-get install libreadline-dev libncurses5-dev libpcre3 libpcre3-dev libssl-dev perl make lua5.1 lua5.1-dev
  - wget http://openresty.org/download/ngx_openresty-1.7.7.1.tar.gz
  - tar xzf ngx_openresty-1.7.7.1.tar.gz
  - cd ngx_openresty-1.7.7.1/
  - ./configure
  - make
  - sudo make install
  - cd ..
  - export PATH=$PATH:/usr/local/openresty/nginx/sbin/
  - wget http://luarocks.org/releases/luarocks-2.1.2.tar.gz
  - tar xzf luarocks-2.1.2.tar.gz
  - cd luarocks-2.1.2
  - ./configure
  - make build
  - sudo make install
  - cd ..

install:
  - sudo apt-get install sqlite3 libsqlite3-dev
  - sudo luarocks install lrexlib-pcre PCRE_LIBDIR=$(dirname `sudo find / -type f -name "libpcre.so*" -print -quit`)
  - sudo luarocks install luasec OPENSSL_LIBDIR=$(dirname `sudo find / -type f -name "libssl.so*" -print -quit`)
  - sudo make global

script: "make test-all"

Revert "Change "cd" with "popd""
Revert "Change "cd" with "popd""

This reverts commit a1b86ab8e43fb56fd521bda956703650841be71a.
