No Description

.travis.yml 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. language: cpp
  2. env:
  3. - CC=gcc CXX=gcc
  4. - CC=clang CXX=clang++
  5. - NODE4=true
  6. - NODE5=true
  7. - NODE012=true
  8. install:
  9. - sudo add-apt-repository --yes ppa:fenics-packages/fenics-exp/swig
  10. - sudo apt-get update -qq
  11. - sudo apt-get install -y -qq swig3.0 git
  12. - sudo ln -s /usr/bin/swig3.0 /usr/bin/swig
  13. - sudo update-java-alternatives -s java-8-oracle
  14. before_script:
  15. - export NODE_ROOT_DIR="/home/travis/.nvm/v0.10.36"
  16. - if [ "$CC" = "gcc" ]; then export BUILDJAVA=ON; else export BUILDJAVA=OFF; fi
  17. - export JAVA_HOME=/usr/lib/jvm/java-8-oracle
  18. - if [ "${NODE4}" ]; then nvm install 4.1; export CC=gcc-4.8; export CXX=g++-4.8; export NODE_ROOT_DIR="/home/travis/.nvm/versions/node/`nvm version`"; fi
  19. - if [ "${NODE5}" ]; then nvm install 5; export CC=gcc-4.8; export CXX=g++-4.8; export NODE_ROOT_DIR="/home/travis/.nvm/versions/node/`nvm version`"; fi
  20. - if [ "${NODE012}" ]; then nvm install 0.12; export NODE_ROOT_DIR="/home/travis/.nvm/versions/node/`nvm version`"; fi
  21. script:
  22. - git clone https://github.com/intel-iot-devkit/mraa.git
  23. - cd mraa && mkdir build && cd build && cmake -DBUILDSWIGJAVA=$BUILDJAVA -DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=OFF -DFIRMATA=ON -DENABLEEXAMPLES=OFF -DCMAKE_INSTALL_PREFIX:PATH=. .. && make && make install
  24. - export PKG_CONFIG_PATH=$PWD/lib/pkgconfig:$PWD/lib/x86_64-linux-gnu/pkgconfig
  25. - export CPLUS_INCLUDE_PATH=$PWD/include
  26. - export LIBRARY_PATH=$PWD/lib:$PWD/lib/x86_64-linux-gnu
  27. - cd ../.. && mkdir build && cd build && cmake -DNODE_ROOT_DIR:PATH="${NODE_ROOT_DIR}" -DBUILDSWIGJAVA=$BUILDJAVA -DBUILDEXAMPLES=ON -DBUILDJAVAEXAMPLES=$BUILDJAVA .. && make
  28. addons:
  29. apt:
  30. sources:
  31. - llvm-toolchain-precise-3.6
  32. - ubuntu-toolchain-r-test
  33. - george-edison55-precise-backports
  34. packages:
  35. - clang-3.6
  36. - g++-4.8
  37. - cmake
  38. - cmake-data