From 18da637890c6e1083ebdf9b87da7736e4e357470 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 12 Feb 2020 00:44:08 +0300 Subject: Travis: add configuration --- .travis.yml | 25 +++++++++++++++++++++++++ _config.yml | 1 + 2 files changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4e6f0dc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +os: linux +dist: bionic +language: ruby + +# Travis doesn't build gh-pages by default: +# https://docs.travis-ci.com/user/customizing-the-build/#building-specific-branches +branches: + only: + - gh-pages + - /.*/ + +jobs: + fast_finish: true + + include: + - stage: Build + name: Build using Bundler + install: bundle install --jobs=3 --retry=3 + script: bundle exec jekyll build --config _config.yml,_config_dev.yml --drafts + - name: Build using latest github-pages + install: + # `jekyll build` seems to be using Bundler if Gemfile is present: + - rm -f -- Gemfile Gemfile.lock + - gem install github-pages + script: jekyll build diff --git a/_config.yml b/_config.yml index 4be1c30..92ca9e3 100644 --- a/_config.yml +++ b/_config.yml @@ -2,6 +2,7 @@ plugins: - jekyll-github-metadata exclude: + - .travis.yml - build.sh - Gemfile - Gemfile.lock -- cgit v1.2.3