Sunday, May 10, 2020

some appveyor and travis-ci gotchas

Here are some points which tripped me up while using appveyor.com or travis-ci.org to build repositories on github.

  • If doing a wget from github releases, sometimes it returns 429 too many requests. Have to cool off for an hour or so.

  • Every project must have the token saved as $mytokenname or whatever environment variable you choose, when using env vars on travis for deploying to github releases. The env vars are not shared between projects.

  • The yml configuration files are sensitive to white space. For example, on appveyor, a space before the build: causes it to not recognize the yml file, complaining "cannot parse".

  • Also on appveyor, the yml file and configurations made via the web UI are mutually exclusive. Either this or that. yml overrides web. So, artifact selection for example, has to be done on the yml if you're using yml.

  • Builds don't occur in the home directory. On travis, the path where the yml is parsed initially is like /home/travis/build/username/projectname/ and on appveyor, like C:\projects\projectname

No comments:

Post a Comment