.travis.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. sudo: false
  2. language: c
  3. dist: xenial
  4. matrix:
  5. fast_finish: true
  6. include:
  7. - os: linux
  8. env: NIM_COMPILE_TO_CPP=false
  9. - os: osx
  10. env: NIM_COMPILE_TO_CPP=false
  11. - os: osx
  12. env: NIM_COMPILE_TO_CPP=true
  13. # To allow failures for a failing configuration, use something like:
  14. # allow_failures:
  15. # - env: NIM_COMPILE_TO_CPP=true
  16. # - os: osx
  17. addons:
  18. apt:
  19. packages:
  20. - libcurl4-openssl-dev
  21. - libsdl1.2-dev
  22. - libgc-dev
  23. - libsfml-dev
  24. before_install:
  25. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  26. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi
  27. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi
  28. before_script:
  29. - set -e
  30. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then unset -f cd; fi
  31. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
  32. - git clone --depth 1 https://github.com/nim-lang/csources.git
  33. - cd csources
  34. - sh build.sh
  35. - cd ..
  36. - export PATH=$(pwd)/bin${PATH:+:$PATH}
  37. - echo PATH:${PATH}
  38. - set +e # prevents breaking after_failure
  39. script:
  40. - set -e
  41. - echo "travis_fold:start:nim_c_koch"
  42. - nim c koch
  43. - echo "travis_fold:end:nim_c_koch"
  44. - ./koch runCI
  45. - set +e
  46. before_deploy:
  47. # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
  48. - cp -f ./doc/html/overview.html ./doc/html/index.html
  49. deploy: # https://nim-lang.github.io/Nim
  50. provider: pages
  51. # local-dir *has* to be a relative path from the repo root.
  52. local-dir: "doc/html"
  53. skip-cleanup: true
  54. github-token: "$GITHUB_OAUTH_TOKEN"
  55. keep-history: false
  56. on:
  57. branch: devel
  58. # Extract failed tests
  59. after_failure: nim c -r tools/ci_testresults.nim