Kick off a code build automatically when developers push changes

Starts a build in Travis CI the moment new code is pushed or a pull request opens on GitHub.

How the work actually flows

It branches. Exactly one path is taken.

Pattern: Exclusive Choice (4)

flowchart TD trig>"code pushed or pull request opened"]:::trig s0["Check if build should run"]:::task s1["Start Travis CI build"]:::svc trig --> s0 gx{"× should this trigger a build"}:::gate s0 --> gx p00["Skip closed or updated PR"]:::task gx -->|"Skip change"| p00 p10["Continue to build"]:::task gx -->|"Valid change"| p10 p00 --> s1 p10 --> s1 out[/"automatically triggered build"/]:::out pay{{"faster testing without manual triggering"}}:::pay s1 --> out out --> pay classDef task fill:#e7f6fe,stroke:#34b8f0,color:#2c2a29 classDef svc fill:#f6f8fa,stroke:#7c8795,color:#2c2a29 classDef mi fill:#e7f6fe,stroke:#0079a8,color:#2c2a29,stroke-width:2px classDef human fill:#fff,stroke:#0079a8,color:#0079a8 classDef store fill:#f6f8fa,stroke:#0079a8,color:#2c2a29 classDef trig fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigtime fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigdata fill:#8ad4f5,stroke:#0079a8,color:#06314c,font-weight:bold classDef gate fill:#fff,stroke:#e8a23d,color:#6b4708,font-weight:bold classDef out fill:#1f9d6b,stroke:#167a53,color:#fff,font-weight:bold classDef pay fill:#06314c,stroke:#021f33,color:#fff
Starts itA stepAn outside serviceOne path onlyResultPayoff
Build size
Standard

A mid-size build with several tools working together.

Business functions
Image & Media ProcessingDevOps & IT Operations
Connects
GitHubTravis CI

The problem it solves

Waiting for someone to remember to kick off a build after code changes slows down your release cycle. You want new code tested right away, not whenever someone gets around to it.

Who it fits

A software team or technical business running continuous integration on GitHub.

How it works

  1. New code is pushed to GitHub or a pull request is opened
  2. The system checks whether the change should trigger a build
  3. Closed or updated pull requests are skipped so builds aren't wasted
  4. A build starts automatically in Travis CI
What you get

Builds that start the moment code lands

Every push or pull request kicks off a fresh build automatically, so your code stays continuously tested and ready.

What you get

An automatically triggered build in Travis CI, ready for test results.

What you need

A GitHub account and a Travis CI account.

We can build this. But should you?

The hard question is not how to build it. It is whether this is the right thing to build first.

That is what a Fractional Chief AI Officer figures out with you, before anyone writes a line of code.

Let's Talk Strategy

Related automations

Back to the AI Playbook