aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-02-12 01:33:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-02-12 18:07:45 +0300
commit3001687d4d0e60d3885e678df0b11c4dcb8aa710 (patch)
tree790735a7873166993117792e72c74e196b5f5956 /.travis.yml
parentmarkdown: link to document's source (diff)
downloadblog-3001687d4d0e60d3885e678df0b11c4dcb8aa710.tar.gz
blog-3001687d4d0e60d3885e678df0b11c4dcb8aa710.zip
Travis: add configuration
Diffstat (limited to '')
-rw-r--r--.travis.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..704ca11
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,31 @@
+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
+ - stage: Verify
+ name: Check integrity
+ install: bundle install --jobs=3 --retry=3
+ script:
+ - nohup bundle exec jekyll serve --config _config.yml,_config_dev.yml --drafts &
+ - sleep 3 && wget --no-verbose --recursive --convert-links --adjust-extension --directory-prefix=/tmp -- http://localhost:4000/