.travis.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. sudo: false
  2. language: c
  3. os:
  4. - linux
  5. - osx
  6. dist: trusty
  7. matrix:
  8. allow_failures:
  9. - os: osx
  10. addons:
  11. apt:
  12. packages:
  13. - libcurl4-openssl-dev
  14. - libsdl1.2-dev
  15. - libgc-dev
  16. - libsfml-dev
  17. before_install:
  18. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  19. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi
  20. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi
  21. before_script:
  22. - set -e
  23. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then unset -f cd; fi
  24. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
  25. - git clone --depth 1 https://github.com/nim-lang/csources.git
  26. - cd csources
  27. - sh build.sh
  28. - cd ..
  29. - export PATH=$(pwd)/bin${PATH:+:$PATH}
  30. script:
  31. - nim c koch
  32. - ./koch boot
  33. - ./koch boot -d:release
  34. - ./koch nimble
  35. - nim e tests/test_nimscript.nims
  36. #- nimble install zip -y
  37. #- nimble install opengl
  38. #- nimble install sdl1
  39. #- nimble install jester@#head -y
  40. #- nimble install niminst
  41. - nim c --taintMode:on -d:nimCoroutines tests/testament/tester
  42. - tests/testament/tester --pedantic all -d:nimCoroutines
  43. - nim c -o:bin/nimpretty nimpretty/nimpretty.nim
  44. - nim c -r nimpretty/tester.nim
  45. - ./koch docs
  46. - ./koch csource
  47. - ./koch nimsuggest
  48. - nim c -r nimsuggest/tester
  49. - nim c -r nimdoc/tester
  50. before_deploy:
  51. # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
  52. - cp -f ./doc/html/overview.html ./doc/html/index.html
  53. deploy:
  54. provider: pages
  55. # local-dir *has* to be a relative path from the repo root.
  56. local-dir: "doc/html"
  57. skip-cleanup: true
  58. github-token: "$GITHUB_OAUTH_TOKEN"
  59. keep-history: false
  60. on:
  61. branch: devel