From the course: Learning Static Site Building with Hugo
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Set up Travis CI
From the course: Learning Static Site Building with Hugo
Set up Travis CI
- [Narrator] Travis CI is a tool that makes it easy to do automated testing and deployment. For this project, we'll use Travis to automatically build and deploy your site whenever the files in GitHub change. All you need to sign into Travis is an existing GitHub account. Once you sign in, click the plus icon to add a new repository to Travis. If you don't see the repo that you just created click the sync account button to refresh the list. Flip the switch next to your repository and then click on settings. We want to switch off build push pull requests. We only want to build the master branch. Travis looks for a file called .travis.yml in the root of your repository. Let's go create that file. Over in VS code I'm going to do new file and call it .travis .yml. This file contains a list of instructions that will be processed by Travis to set up what we need to build the site. What I'll do first, is create an install section. And in this install section, I need to get Hugo into the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.