only install snapcraft if needed
This commit is contained in:
parent
62f654cf86
commit
b3512b431f
|
@ -11,7 +11,6 @@ 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
|
||||||
|
@ -38,6 +37,7 @@ before_build:
|
||||||
- sh: |
|
- sh: |
|
||||||
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
||||||
then
|
then
|
||||||
|
sudo snap install snapcraft --classic
|
||||||
echo "$SNAP_TOKEN" | snapcraft login --with -
|
echo "$SNAP_TOKEN" | snapcraft login --with -
|
||||||
fi
|
fi
|
||||||
- ps: |
|
- ps: |
|
||||||
|
|
Loading…
Reference in New Issue