Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

travis ci

Grimmer edited this page Jul 27, 2017 · 5 revisions

url: https://travis-ci.org/CARTAvis/carta

Done: after triggering a build, travis-ci will build CARTA mac desktop and deploy to google drive

  • To check. Current travis-ci seems to build the commit of pull requests, not the pull request + merging develop.

Notes:

  1. https://docs.travis-ci.com/user/caching/: If a branch does not have its own cache, Travis CI fetches the master branch cache.

How to trigger (will complement this part later)

How to get a travis-ci build to test before accepting pull requests (which means merging into develop branch)? See below proposals:

Proposal-1 (current): to speed up building the new feature or bug fixes in pull requests

  1. disable autobuild for branch commit and pull requests
  2. manually merge feature branch/bug fix branch which should belong to some pull requests into a testing branch.
  3. use travis-ci API https://docs.travis-ci.com/user/triggering-builds/ to trigger a build for a specific branch.

Proposal-2: Just enable the auto-build feature, "Build pull request updates" on travis-ci. So every pull requests will get its auto-builds on travis-ci.

Two drawbacks:

  1. 1st time needs to build Thirdparty and casa (~ 40min), after that, e.g. 2nd time, it only needs to build and deploy CARTA (~ 40min)and will use caches of Thirdparty and casa.
  2. Every update on this branch will trigger a build.

Proposal-3: Disable "Build pull request updates", submit a pull request, then do one of the following ways to trigger a build to test

  1. Enable "Build pull request updates" temporarily, then close this pull request, then re-open again, it will trigger a build.