language: haxe

cache:
  directories:
    - $HOME/.m2

addons:
  apt:
    packages:
    - maven

before_install:
  - wget http://download.macromedia.com/pub/flex/sdk/flex_sdk_3.6.zip
  - unzip -d flex_sdk flex_sdk_3.6.zip

install:
  - haxelib install haxelib-run
  - git clone --branch v2.4.1 --depth 1 https://github.com/google/protobuf.git
  - |
    echo '
    PROTOBUF_VERSION=2.4.1
    PROTOBUF_DIR=protobuf
    ifeq ($(OS), Windows_NT)
    BAT=.bat
    EXE=.exe
    PATH_SEPARATOR=;
    else
    PATH_SEPARATOR=:
    endif
    COMPC=flex_sdk/bin/compc$(BAT)
    MXMLC=flex_sdk/bin/mxmlc$(BAT)
    ASDOC=flex_sdk/bin/asdoc$(BAT)
    FDB=flex_sdk/bin/fdb$(BAT)
    MVN=mvn
    JAVAC=javac
    JAR=jar
    HAXE=haxe
    ' > config.mk
  - make protobuf/src/protoc

script:
  - make

language: haxe

cache:
  directories:
    - $HOME/.m2

addons:
  apt:
    packages:
    - maven
    - protobuf-compiler

before_install:
  - wget http://download.macromedia.com/pub/flex/sdk/flex_sdk_3.6.zip
  - unzip -d flex_sdk flex_sdk_3.6.zip

install:
  - haxelib install haxelib-run
  - git clone --branch v2.4.1 --depth 1 https://github.com/google/protobuf.git
  - |
    echo '
    PROTOBUF_VERSION=2.4.1
    PROTOBUF_DIR=protobuf
    PROTOC=protoc
    ifeq ($(OS), Windows_NT)
    BAT=.bat
    EXE=.exe
    PATH_SEPARATOR=;
    else
    PATH_SEPARATOR=:
    endif
    COMPC=flex_sdk/bin/compc$(BAT)
    MXMLC=flex_sdk/bin/mxmlc$(BAT)
    ASDOC=flex_sdk/bin/asdoc$(BAT)
    FDB=flex_sdk/bin/fdb$(BAT)
    MVN=mvn
    JAVAC=javac
    JAR=jar
    HAXE=haxe
    ' > config.mk

script:
  - make

Use the protoc executable from Ubuntu
Use the protoc executable from Ubuntu