forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
20 lines (15 loc) · 770 Bytes
/
.travis.yml
File metadata and controls
20 lines (15 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: bash
services:
- docker
script:
# Build the deb package in the yarn development container
- docker run -v $PWD:$PWD -w $PWD yarnpkg/dev:latest /bin/sh -c "yarn && yarn build-dist && scripts/build-deb.sh"
# Install gcloud so we can upload the build to our bucket
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud version
# Authenticate
- echo $GOOGLE_CREDENTIALS_BASE64 | base64 -d > credentials.json
- gcloud auth activate-service-account --key-file=credentials.json
# Upload the built snap file
- gsutil cp artifacts/*.deb $GOOGLE_BUCKET/stemn-yarn.deb