4 changed files with 2 additions and 79 deletions
@ -1,50 +0,0 @@ |
|||||||
image: |
|
||||||
- Ubuntu1804 |
|
||||||
|
|
||||||
branches: |
|
||||||
except: |
|
||||||
- gh-pages |
|
||||||
|
|
||||||
stack: node 10, ruby 2.6 |
|
||||||
|
|
||||||
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 |
|
||||||
@ -1,27 +0,0 @@ |
|||||||
# Node.js |
|
||||||
# Build a general Node.js project with npm. |
|
||||||
# Add steps that analyze code, save build artifacts, deploy, and more: |
|
||||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript |
|
||||||
|
|
||||||
trigger: |
|
||||||
- master |
|
||||||
|
|
||||||
pool: |
|
||||||
vmImage: 'Ubuntu-16.04' |
|
||||||
|
|
||||||
steps: |
|
||||||
- task: UseRubyVersion@0 |
|
||||||
displayName: 'Use Ruby >= 2.4' |
|
||||||
|
|
||||||
- script: 'gem install jekyll bundler' |
|
||||||
displayName: 'Install jekyll and bundler gems' |
|
||||||
|
|
||||||
- task: NodeTool@0 |
|
||||||
inputs: |
|
||||||
versionSpec: '10.x' |
|
||||||
displayName: 'Install Node.js' |
|
||||||
|
|
||||||
- script: | |
|
||||||
npm install |
|
||||||
npm run build |
|
||||||
displayName: 'npm install and build' |
|
||||||
Loading…
Reference in new issue