.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. - git clone --depth 1 https://github.com/nim-lang/csources.git
  24. - cd csources
  25. - sh build.sh
  26. - cd ..
  27. - sed -i -e 's,cc = gcc,cc = clang,' config/nim.cfg
  28. - export PATH=$(pwd)/bin:$PATH
  29. script:
  30. - nim c koch
  31. - ./koch boot
  32. - ./koch boot -d:release
  33. - ./koch nimble
  34. - nim e tests/test_nimscript.nims
  35. - nimble install zip -y
  36. - nimble install opengl
  37. - nimble install sdl1
  38. - nimble install jester@#head
  39. - nimble install niminst
  40. - nim c --taintMode:on -d:nimCoroutines tests/testament/tester
  41. - tests/testament/tester --pedantic all -d:nimCoroutines
  42. - ./koch web
  43. - ./koch csource