Can I put appveyor.yml in git submodule and use symlink to it ?

SAWANOBORI Yukihiko's Avatar

SAWANOBORI Yukihiko

May 27, 2015 @ 04:30 AM

Hi, I want to load appveyor.yml from submodule to share between two projects.

For example, https://github.com/serverspec/serverspec has wercker.yml which symlinks to integration-test(submodule)/wercker.yml.
It works correctly on the wercker. Maybe, they sync submodule at the same time with clone main repository.

How I can do same as it ?
My current appveyor.yml is here https://github.com/serverspec/serverspec-integration-test/blob/master/appveyor.yml .

  1. Support Staff 1 Posted by Feodor Fitsner on May 27, 2015 @ 05:36 PM

    Feodor Fitsner's Avatar

    Well, I guess you can if symlinked file can be fetched using GitHub API.

    - Feodor

  2. 2 Posted by SAWANOBORI Yuki... on May 28, 2015 @ 04:23 AM

    SAWANOBORI Yukihiko's Avatar

    Thank you for reply.

    What does it mean?
    Does the build follows symlinked file automatically ?
    Or, can I set url of appveyor.yml via Github API to custom configuration ?

  3. Support Staff 3 Posted by Feodor Fitsner on May 28, 2015 @ 04:34 AM

    Feodor Fitsner's Avatar

    I mean API taking file contents: https://developer.github.com/v3/repos/contents/#get-contents

    Try in browser for your repo:

    https://api.github.com/repos/{owner}/{repo}/contents/appveyor.yml
    
  4. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac