.travis.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. sudo: false
  2. language: c
  3. dist: xenial
  4. matrix:
  5. include:
  6. - os: linux
  7. env:
  8. - NIM_COMPILE_TO_CPP=false
  9. - CPU=amd64
  10. addons:
  11. apt:
  12. # update the list above if more deps are introduced
  13. packages:
  14. - libcurl4-openssl-dev
  15. - libsdl1.2-dev
  16. - libgc-dev
  17. - libsfml-dev
  18. - libc6-dbg
  19. - valgrind
  20. - libssl-dev
  21. before_script:
  22. - git clone --depth 1 https://github.com/nim-lang/csources.git
  23. - export PATH="$PWD/bin${PATH:+:$PATH}"
  24. - make -C csources -j 2 LD=$CC ucpu=$CPU
  25. script:
  26. - echo "travis_fold:start:nim_c_koch"
  27. - nim c koch
  28. - echo "travis_fold:end:nim_c_koch"
  29. - echo "travis_fold:start:koch_boot"
  30. - ./koch boot
  31. - echo "travis_fold:end:koch_boot"
  32. - echo "travis_fold:start:koch_doc"
  33. - ./koch doc
  34. - echo "travis_fold:end:koch_doc"
  35. before_deploy:
  36. # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
  37. - cp -f ./doc/html/overview.html ./doc/html/index.html
  38. deploy: # https://nim-lang.github.io/Nim
  39. provider: pages
  40. # local-dir *has* to be a relative path from the repo root.
  41. local-dir: "doc/html"
  42. skip-cleanup: true
  43. github-token: "$GITHUB_OAUTH_TOKEN"
  44. keep-history: false
  45. on:
  46. branch: devel