try snapcraft login

This commit is contained in:
Kyle Spearrin 2019-03-12 23:34:59 -04:00
parent 0cd0ef60f0
commit 77f953c4de
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ stack: node 10
init: init:
- sh: sudo apt-get update - sh: sudo apt-get update
- sh: sudo apt-get -y install pkg-config libxss-dev libsecret-1-dev rpm - sh: sudo apt-get -y install pkg-config libxss-dev libsecret-1-dev rpm
- sh: sudo snap install snapcraft --classic
- ps: | - ps: |
if($isWindows) { if($isWindows) {
Install-Product node 10 Install-Product node 10
@ -28,6 +29,11 @@ install:
choco install cloc --no-progress choco install cloc --no-progress
cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
} }
- sh: |
if [ "${SNAP_TOKEN}" != "" -a "$prodDeploy" == "false" ]
then
echo "$SNAP_TOKEN" | snapcraft login --with -
fi
before_build: before_build:
- node --version - node --version