Giter Club home page Giter Club logo

Comments (4)

jtpereyda avatar jtpereyda commented on July 20, 2024

Looks like we can whitelist master to only do things once they get into master:

branches:
  only:
    - "master"

Source: travis-ci/travis-ci#1147

from boofuzz.

jtpereyda avatar jtpereyda commented on July 20, 2024

We can use a little script to bump the version number, commit, and push.

Some examples can be found here: travis-ci/travis-ci#1476

from boofuzz.

jtpereyda avatar jtpereyda commented on July 20, 2024

General plan:

  1. Create Travis step to run only on master, and only when there is not a tag.
  2. Use step to bump version number, commit, tag, and push with tags.

Possible issue: If PRs are merged close to each other, the push above could fail. That's probably OK though, since the new PR merge will eventually push with tags and run the deployment. :)

https://gist.github.com/domenic/ec8b0fc8ab45f39403dd#get-encrypted-credentials

from boofuzz.

jtpereyda avatar jtpereyda commented on July 20, 2024

The other question is how to handle version number increments. I planned to just increase the dev number each time, and then manually control real releases. This involves a manual step though. But how to increase a version number is a human decision. See this article: http://blog.ploeh.dk/2013/12/10/semantic-versioning-with-continuous-deployment/

Using a dev release really only makes sense if there is a gap between dev releases and real releases. For example, if we had manual tests that we ran for real releases, or dev release users who acted as beta testers.

The problem is that a dev release must specify which actual release it is for.

Plan:

  1. Automatic dev releases (increment the fix version, then append the dev version) for continuous deployment.
  2. Maintainer-controlled real releases.

This gets confusing when the version number jumps a major or minor version. Then you'll have a situation where, say, 1.3.4dev5 ends up not being included in 1.3.4. Instead, 1.3.4 gets set to dev4, and the dev5 version goes into 1.4. This is actually OK, except that if the maintainer loses track of these, he will have to untangle what gets released where.

... Maybe it's good enough for now.

from boofuzz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.