12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- sudo: false
- language: c
- dist: trusty
- matrix:
- include:
- - os: linux
- env: NIM_COMPILE_TO_CPP=false
- - os: osx
- env: NIM_COMPILE_TO_CPP=false
- - os: osx
- env: NIM_COMPILE_TO_CPP=true
- allow_failures:
- - env: NIM_COMPILE_TO_CPP=true
- # - os: osx
- addons:
- apt:
- packages:
- - libcurl4-openssl-dev
- - libsdl1.2-dev
- - libgc-dev
- - libsfml-dev
- before_install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi
- before_script:
- - set -e
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then unset -f cd; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
- - git clone --depth 1 https://github.com/nim-lang/csources.git
- - cd csources
- - sh build.sh
- - cd ..
- - export PATH=$(pwd)/bin${PATH:+:$PATH}
- script:
- - nim c koch
- - env NIM_COMPILE_TO_CPP=false ./koch boot
- - ./koch boot -d:release
- - ./koch nimble
- - nim e tests/test_nimscript.nims
- #- nimble install zip -y
- #- nimble install opengl
- #- nimble install sdl1
- #- nimble install jester@#head -y
- #- nimble install niminst
- - nim c -d:nimCoroutines testament/tester
- - testament/tester --pedantic all -d:nimCoroutines
- - nim c -o:bin/nimpretty nimpretty/nimpretty.nim
- - nim c -r nimpretty/tester.nim
- - ./koch docs --git.commit:devel
- - ./koch csource
- - ./koch nimsuggest
- - nim c -r nimsuggest/tester
- - nim c -r nimdoc/tester
- before_deploy:
- # Make https://nim-lang.github.io/Nim work the same as https://nim-lang.github.io/Nim/overview.html
- - cp -f ./doc/html/overview.html ./doc/html/index.html
- deploy: # https://nim-lang.github.io/Nim
- provider: pages
- # local-dir *has* to be a relative path from the repo root.
- local-dir: "doc/html"
- skip-cleanup: true
- github-token: "$GITHUB_OAUTH_TOKEN"
- keep-history: false
- on:
- branch: devel
|