From cdcc83f7cf3183a74b398a9c2ff06a0612153e61 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 26 Mar 2019 10:14:33 -0400 Subject: [PATCH] appveyor.yml --- appveyor.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..62bb269 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,50 @@ +image: +- Ubuntu1804 + +branches: + except: + - gh-pages + +stack: node 10, ruby 2.6.0 + +init: +- sh: | + if [ "${DEBUG_SSH}" == "true" ] + then + curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e - + fi + +install: +- gem install jekyll bundler +- sh: | + if [ "${GH_TOKEN}" != "" ] + then + git config --global credential.helper store + echo "https://${GH_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials + git config --global user.email "ci@bitwarden.com" + git config --global user.name "Bitwarden CI" + fi + +before_build: +- node --version +- npm --version +- ruby --version +- jekyll --version + +build_script: +- npm install +- sh: | + if [ "${GH_TOKEN}" != "" ] + then + npm run deploy + else + npm run build + fi + +on_finish: +- sh: | + if [ "${DEBUG_SSH}" == "true" ] + then + export APPVEYOR_SSH_BLOCK=true + curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e - + fi