.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. before_script:
  21. - git clone --depth 1 https://github.com/nim-lang/csources.git
  22. - export PATH="$PWD/bin${PATH:+:$PATH}"
  23. - make -C csources -j 2 LD=$CC ucpu=$CPU
  24. script:
  25. - echo "travis_fold:start:nim_c_koch"
  26. - nim c koch
  27. - echo "travis_fold:end:nim_c_koch"
  28. - echo "travis_fold:start:koch_boot"
  29. - ./koch boot
  30. - echo "travis_fold:end:koch_boot"
  31. - echo "travis_fold:start:koch_doc"
  32. - ./koch doc
  33. - echo "travis_fold:end:koch_doc"
  34. before_deploy:
  35. # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
  36. - cp -f ./doc/html/overview.html ./doc/html/index.html
  37. deploy: # https://nim-lang.github.io/Nim
  38. provider: pages
  39. # local-dir *has* to be a relative path from the repo root.
  40. local-dir: "doc/html"
  41. skip-cleanup: true
  42. github-token: "$GITHUB_OAUTH_TOKEN"
  43. keep-history: false
  44. on:
  45. branch: devel