Setting up Travis CI for Jekyll to build and deploy


Edit on Github

TravisCI Mascot

I just set up first ever Continuous Integration Build Process using TravisCI, TravisCI, is pretty cool, super simple, and a joy to use. This build process was setup for this very blog, in order to save me hassle of rebuilding the whole blog manually and then deploying it manually too. Life was never so fun.

Here’s my build file though

language: ruby
rvm:
 - 2.3.3
 - 2.2
before_install:
    - bash ./scripts/nvm.sh
    - npm install -g surge
    - npm install -g firebase-tools
script:
    - ./scripts/cibuild.sh
after_success:
    - ./scripts/deploy.sh

branches:
    except:
        - gh-pages

You might have noticed paths to bash scripts, majority of what TravisCI does for this blog is located in these scripts. You can checkout all the bash scripts in the scripts/ directory of this blog’s Github Repository.

Related Posts

Purge cache after Jekyll build using Cloudflare API and TravisCI

Purging Cache using Cloudflare after building Jekyll saves me from purging everything, and not buy the tag feature

Improving lives through CS and coding

This post highlights the importance of Computer Science Education and how we can do more to get more people to code, create cool things and be ready for the exciting future.