Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis and appveyor should move the bulk of its logic to running a nim file #10041

Closed
timotheecour opened this issue Dec 19, 2018 · 1 comment · Fixed by #10183
Closed

travis and appveyor should move the bulk of its logic to running a nim file #10041

timotheecour opened this issue Dec 19, 2018 · 1 comment · Fixed by #10183
Assignees

Comments

@timotheecour
Copy link
Member

timotheecour commented Dec 19, 2018

something like this:

add koch options: ci_script, before_deploy

so that these work:

nim c -r koch ci_script
nim c -r koch c_before_deploy

then update .travis.yml to just call it:

sudo: false
language: c

dist: trusty

addons:
  apt:
    packages:
    - libcurl4-openssl-dev
    - libsdl1.2-dev
    - libgc-dev
    - libsfml-dev

before_script:
  - set -e
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then unset -f cd; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then shell_session_update() { :; }; fi
  # or maybe: sh build_all.sh
  - 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 -r koch ci_script

before_deploy:
  - nim c -r koch ci_before_deploy
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

and similar with appveyor

benefits

@narimiran narimiran removed the RFC label Jan 2, 2019
timotheecour added a commit to timotheecour/Nim that referenced this issue Jan 4, 2019
@timotheecour
Copy link
Member Author

=> PR #10183

timotheecour added a commit to timotheecour/Nim that referenced this issue Jan 4, 2019
timotheecour added a commit to timotheecour/Nim that referenced this issue Jan 4, 2019
timotheecour added a commit to timotheecour/Nim that referenced this issue Jan 6, 2019
@timotheecour timotheecour self-assigned this Jan 7, 2019
Araq pushed a commit that referenced this issue Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants