.travis.yml 1.9 KB

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