🔷
CI/CD & GitOps

Travis CI

Classic GitHub-integrated CI — .travis.yml in your repo

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Travis CI was one of the first GitHub-integrated CI services — config lives in .travis.yml.

📁

Config files for Travis CI

Where to create or edit the main configuration — paths below match the setup steps.

  • .travis.yml

    Location: Repository root

    Language, script, and deploy settings for Travis CI

📥

Step 01

Install Travis CI

(01)Install Travis CI

Linux
1gem install travis
2# Or:
3sudo apt-get install -y ruby-dev && gem install travis
⚙️

Step 02

Configure Travis CI

(01)Add .travis.yml to repo root

Travis CI reads .travis.yml from the repository root.

Linux
1cat > .travis.yml << 'EOF'
2language: node_js
3node_js: "20"
4script: npm test
5EOF
6travis login --github-token YOUR_TOKEN
7git add .travis.yml && git commit -m "Add Travis CI" && git push

Step 03

Verify

(01)Verify installation

Linux
1travis --version