DEV Community

namuan
namuan

Posted on • Originally published at deskriders.dev on

2

KubeRider :: Building with TravisCI

Here is what .travis.yml file looks like in KubeRider

language: python
os: linux
dist: trusty
sudo: required
python: '3.6'
git:
 depth: 1
branches:
 only:
 - master
env:
 global:
 - BUILD\_VERSION="0.0.1"
script:
 - git config --local user.name "namuan"
 - git remote set-url origin https://namuan:${GITHUB\_TOKEN}@github.com/namuan/kube-rider.git
 - git push origin :refs/tags/${BUILD\_VERSION}
 - git tag -f -am v${BUILD\_VERSION} ${BUILD\_VERSION}
 - git push origin ${BUILD\_VERSION}
notifications:
 email: false

Once added to the project, next step is to add the project to TravisCI.

After few seconds and if the setup is correct, you'll be taken to the following page where you can manually trigger the build

This is only to see if the build if working otherwise usually it'll auto trigger the build as soon it detects a commit in Github.

Once the build is successful, it'll tag the build in Github with the current version

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay