Does Travis CI Remember Between Runs? A Cache Carries One Branch. The Next Build Starts in a Fresh Virtual Machine.
Does Travis CI Remember Between Runs? A Cache Carries One Branch. The Next Build Starts in a Fresh Virtual Machine. Run the same Travis CI build twice and the second build looks familiar. The same .travis.yml loads, the same jobs run in the same order, and the dashboard lists both builds side by side. That familiarity can look like memory. It is not the same thing. Travis CI remembers a project well enough to repeat it. It does not hand the next build what the last build learned while it was wo
Does Travis CI Remember Between Runs? A Cache Carries One Branch. The Next Build Starts in a Fresh Virtual Machine.
Run the same Travis CI build twice and the second build looks familiar. The same .travis.yml loads, the same jobs run in the same order, and the dashboard lists both builds side by side. That familiarity can look like memory. It is not the same thing. Travis CI remembers a project well enough to repeat it. It does not hand the next build what the last build learned while it was working.
That gap matters when a build carries AI steps. A scheduled build that triages test failures or drafts release notes needs the decisions and unfinished threads from the run before it. Knowing what Travis CI keeps shows where that continuity has to come from.
No state survives the virtual machine, by design
Travis CI is explicit about this point in its own documentation. It uses virtual machine snapshotting to make sure no state is preserved between builds. Every build runs in an isolated virtual machine that offers a clean, vanilla environment, built from scratch for that build alone.
The consequence is total. Install a package during a build, write to a data store from a build step, or create files anywhere outside the declared cache, and none of it affects the next build. The machine that ran on Monday is gone on Tuesday. The next build starts from the snapshot image, the repository at the requested commit, and the configuration in .travis.yml.
Inside one build, state does flow. Jobs and phases share the repository checkout and that one machine's filesystem, and session changes stay sticky for the rest of the build. All of that sharing ends when the build ends.
The cache carries directories, and only directories
The one channel Travis CI offers across builds is the cache. A build can declare directories under cache: directories: in .travis.yml, or use shortcuts such as cache: bundler for a language's dependency store. Travis CI fetches the cache at the start of a build and uploads it again after the script phase, before after_success or after_failure runs.
The scope is narrow and specific. There is one cache per branch, further divided by language version, compiler version, or similar keys, and a branch without its own cache falls back to the cache of the repository's default branch. The cache is designed for content that does not often change: downloaded dependencies, compiled libraries, tool installations that are slow to rebuild.
A cache moves files. It does not move understanding. A cached directory can hold a summary file if a step writes one there, but nothing in Travis CI decides what belongs in that file, reads it back as context, updates it when a decision changes, or warns when it has gone stale. Cache content is also available to any build on the repository, including pull requests, which is why the documentation warns against putting anything sensitive in it. It is a speed tool for dependencies, not a memory system for an agent.
Environment variables are configuration supplied at the start
The second thing that crosses the build boundary is configuration. Environment variables defined in .travis.yml, stored encrypted in the repository, or set in the repository settings are injected into every build that matches their conditions. Branch conditions can scope a variable so it only appears on certain branches.
Variables describe how a build should behave in general: an API endpoint, a deployment target, a feature flag, a credential. They are written by a person in advance and stay fixed until a person edits them. A build step cannot learn something on Monday, store it as a variable, and have Tuesday's build read the updated value. The channel runs one way, from configuration into the build, never from the build's experience back into the next build's starting knowledge.
So two builds can match on paper and still start as strangers. The YAML, the variables, and the cache describe the environment. They say nothing about the specific call an AI step made yesterday, the exception it granted, or the question it left open.
Build history is a record for people
Completed builds do stay visible for a while. The dashboard keeps build and job history, logs, and statuses, so a person can compare a failure today with a pass last week. That history helps a human debug.
No build reads it. A new build does not open the previous build's log, extract its conclusions, and start from them. The record exists for inspection after the fact, in a separate place from the work itself.
Travis CI's own design makes the line clear: machines are disposable, caches carry declared directories, variables carry fixed configuration, and history is for people. None of them supply working context to the next execution.
What an AI step actually needs at the start of a build
Picture a nightly build with an AI step that triages failing tests. On Monday it decides three failures are flakes, one is a real regression, and one needs a maintainer's call. On Tuesday the same step starts again. The cache gives it dependencies. Variables give it endpoints and credentials. Monday's judgments are nowhere it can read. Unless the team built a separate store, the step re-derives every call and can contradict Monday's decision without ever knowing Monday existed.
Writing a summary into a cached directory does not close that gap by itself. Someone still has to decide what gets written, retrieve the right file for the right branch, and keep it current when a decision changes. The missing piece is a memory layer the agent itself reads and writes as part of its work.
Giving Travis CI agents one shared memory
Vilix AI is that memory layer. It is cloud-hosted, so there is no database, vector store, or server to deploy or maintain next to the build infrastructure: zero infrastructure to run. An agent step connects over MCP, reads the relevant context before it acts, and saves what it decided before the build ends.
The same memory is available everywhere over MCP, not only inside Travis CI. The step that triages tests in a build, an agent in a coding tool, and an assistant in a chat window can all read and write the same shared state, so a decision made in one place is present in the others. Vilix AI keeps full conversation history, not just extracted facts, so the reasoning behind a call, the correction that followed it, and the exact wording of an open question survive together.
Getting started is deliberately low-risk. Vilix AI has a free plan that stays free forever, and Pro offers a 7-day trial with no card required. Data can be exported or deleted at any time, so memory stays under the team's control while it accumulates.
Travis CI is excellent at giving every build the same clean start. Keep using the cache for dependencies, variables for configuration, and the dashboard for history. Add Vilix AI for the one job none of them do: letting the next build start with what the last build learned.