# Travis CI build file for OpenAPI Compiler, including Go and Swift plugins

# Use Ubuntu 14.04
dist: trusty

sudo: false

language: go

addons:
  apt:
    packages:
    - clang-3.8 
    - lldb-3.8 
    - libicu-dev 
    - libtool 
    - libcurl4-openssl-dev 
    - libbsd-dev 
    - build-essential 
    - libssl-dev 
    - uuid-dev
    - curl
    - unzip

install: 
  - go get github.com/googleapis/gnostic
  - go get github.com/googleapis/gnostic/plugins/go/gnostic_go_sample
  - ./.travis-install.sh

script:
  - go test . -v
  - pushd plugins/go/gnostic_go_generator/examples/bookstore
  - make test
  - popd
  - export PATH=.:$HOME/local/bin:$PATH
  - export LD_LIBRARY_PATH=$HOME/local/lib
  - pushd plugins/swift/gnostic_swift_generator
  - make
  - cd examples/bookstore
  - make
  - .build/debug/Server &
  - make test
  

# Travis CI build file for OpenAPI Compiler, including Go and Swift plugins

# Use Ubuntu 14.04
dist: trusty

sudo: false

language: go

addons:
  apt:
    packages:
    - clang-3.8 
    - lldb-3.8 
    - libicu-dev 
    - libtool 
    - libcurl4-openssl-dev 
    - libbsd-dev 
    - build-essential 
    - libssl-dev 
    - uuid-dev
    - curl
    - unzip

install: 
  - go get github.com/googleapis/gnostic
  - go get github.com/googleapis/gnostic/plugins/go/gnostic_go_sample
  - go get github.com/googleapis/gnostic/extensions/sample/generated/openapi_extensions_insourcetech
  - go get github.com/googleapis/gnostic/extensions/sample/generated/openapi_extensions_nerdwaretech
  - ./.travis-install.sh

script:
  - go test . -v
  - pushd plugins/go/gnostic_go_generator/examples/bookstore
  - make test
  - popd
  - export PATH=.:$HOME/local/bin:$PATH
  - export LD_LIBRARY_PATH=$HOME/local/lib
  - pushd plugins/swift/gnostic_swift_generator
  - make
  - cd examples/bookstore
  - make
  - .build/debug/Server &
  - make test
  

Install the sample extensions to make the tests work.
Install the sample extensions to make the tests work.
