language: python

python:
  - "2.6"
  - "2.7"
  # - "3.2"
  # - "3.3"
  # - "pypy"

branches:
  only:
    - master
    - devel

install:
  - wget "http://llvm.org/releases/3.2/clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz"
  - tar -xzvf "clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz"
  - export LLVM_CONFIG_PATH="`pwd`/clang+llvm-3.2-x86-linux-ubuntu-12.04/bin/llvm-config"
  - echo "$PATH $LLVM_CONFIG_PATH"
  - $LLVM_CONFIG_PATH --cflags # test llvm-config
  - pip install llvmpy
  - pip install -r requirements.txt --use-mirrors
  - python setup.py build_ext --inplace

script: nosetests

matrix:
  allow_failures:
    - python: pypy

notifications:
  email: false
  flowdock: "cb7bc57e58b3d42f77685f93211c03ab"
  on_success: "change"
  on_failure: "change"


language: python

python:
  - "2.6"
  - "2.7"
  # - "3.2"
  # - "3.3"
  # - "pypy"

branches:
  only:
    - master
    - devel

install:
  - wget "http://llvm.org/releases/3.2/clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz"
  - tar -xzvf "clang+llvm-3.2-x86-linux-ubuntu-12.04.tar.gz" -C $HOME
  - mv "$HOME/clang+llvm-3.2-x86-linux-ubuntu-12.04" "$HOME/clang"
  - PATH+=":$HOME/clang/bin"
  - export LLVM_CONFIG_PATH="$HOME/clang/bin/llvm-config"
  - ls "$HOME/clang/bin"
  - echo "$PATH $LLVM_CONFIG_PATH"
  - $LLVM_CONFIG_PATH --cflags # test llvm-config
  - pip install llvmpy
  - pip install -r requirements.txt --use-mirrors
  - python setup.py build_ext --inplace

script: nosetests

matrix:
  allow_failures:
    - python: pypy

notifications:
  email: false
  flowdock: "cb7bc57e58b3d42f77685f93211c03ab"
  on_success: "change"
  on_failure: "change"


Move llvm to the home folder
Move llvm to the home folder
