.travis.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. os:
  2. - linux
  3. - osx
  4. language: c
  5. compiler:
  6. - gcc
  7. - clang
  8. # we will end up with four builds from the permutations of the OSes and
  9. # compilers (i.e. linux w/ gcc, linux w/ clang, osx w/ gcc, osx w/ clang)
  10. # install dependencies (swig, boost, python dev headers)
  11. before_install:
  12. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
  13. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install swig; fi
  14. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3-dev; fi
  15. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libboost-all-dev; fi
  16. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  17. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
  18. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig; fi
  19. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade boost; fi
  20. # build mcell itself
  21. script:
  22. - git submodule init
  23. - git submodule update
  24. - mkdir build
  25. - cd build
  26. - cmake .. && make
  27. # tar up mcell and libraries for distribution via bintray
  28. - "tar czf mcell-${TRAVIS_OS_NAME}-$CC.tgz mcell lib"
  29. - cd ..
  30. env:
  31. global:
  32. # this hashed key is used by coverity, a tool for doing static analysis
  33. secure: VPWYKTuN++NylNQFML3gEVi5GEy9AWCXPy0fS0ZJRJxz1oMt7roE9suZCUI5Q66hS2rwH+Zn/cOaphc/rSTg/wN8K2AGVpZ2p9IPQeCYnxy/HOh7wxZ/eR140sIoAZr68xRXP4KGpHsWduCDAzMAHQVk27u9Gp91bZeaPDv0eoE=
  34. addons:
  35. coverity_scan:
  36. project:
  37. name: mcellteam/mcell
  38. description: Build submitted via Travis CI
  39. notification_email: [email protected]
  40. build_command_prepend: cd ./src && ./bootstrap && ./configure
  41. build_command: make
  42. branch_pattern: coverity_scan
  43. deploy:
  44. provider: bintray
  45. file: "./bintray.json"
  46. user: jczech
  47. key:
  48. # If you need to regenrate this for some reason, here's what you do:
  49. # travis encrypt <YOUR BINTRAY API KEY> --add deploy.key
  50. # Get BINTRAY API KEY from https://bintray.com/profile/edit under "API Key" section
  51. secure: PIaDd9+HTh2R5yMr1V7Cbpry4NB5cefY9j6jQpPJ+tJ73kP4oMOs+fZ288pgiYYskc8clYzVE00pixVmAXIpnzCpTYx7yWTGRA7USwfuFUvUtvu/U2bw0+PJpDyhfO4L3EV5NKuFZCxl+Spr6YrYnFUJtqfPOve5117G8R5dke8=
  52. skip_cleanup: true
  53. on:
  54. all_branches: true