2018-02-04 02:02:27 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
# Copyright 2018 Google Inc. Use of this source code is governed by an MIT-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://opensource.org/licenses/MIT.
|
|
|
|
|
2018-03-28 01:55:28 +02:00
|
|
|
openssl aes-256-cbc -K $encrypted_d472b0f964cc_key -iv $encrypted_d472b0f964cc_iv -in tool/encrypted/credentials.tar.enc \
|
2018-02-04 04:15:10 +01:00
|
|
|
-out credentials.tar -d
|
2018-02-04 04:02:46 +01:00
|
|
|
|
2018-02-04 02:02:27 +01:00
|
|
|
mkdir -p ~/.pub-cache
|
2018-02-04 04:15:10 +01:00
|
|
|
tar xfO credentials.tar npm > ~/.npmrc
|
|
|
|
tar xfO credentials.tar pub > ~/.pub-cache/credentials.json
|
2018-02-04 03:47:56 +01:00
|
|
|
|
|
|
|
function travis_cmd() {
|
|
|
|
echo "\$ $@"
|
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
travis_fold() {
|
|
|
|
local action=$1
|
|
|
|
local name=$2
|
|
|
|
echo -en "travis_fold:${action}:${name}\r"
|
|
|
|
}
|
|
|
|
|
2018-02-04 07:35:20 +01:00
|
|
|
travis_fold start github
|
|
|
|
travis_cmd pub run grinder github_release
|
|
|
|
travis_fold end github
|
|
|
|
|
2018-02-04 03:47:56 +01:00
|
|
|
travis_fold start npm
|
2018-03-10 02:16:00 +01:00
|
|
|
travis_cmd pub run grinder npm_release_package
|
2018-02-04 03:47:56 +01:00
|
|
|
travis_cmd npm publish build/npm
|
|
|
|
travis_cmd npm publish build/npm-old
|
|
|
|
travis_fold end npm
|
|
|
|
|
|
|
|
travis_fold start pub
|
2018-02-04 04:41:36 +01:00
|
|
|
travis_cmd pub lish --force
|
2018-02-04 03:47:56 +01:00
|
|
|
travis_fold end pub
|
|
|
|
|
|
|
|
travis_fold start homebrew
|
2018-03-06 01:59:22 +01:00
|
|
|
git config --local user.name "SassBot"
|
|
|
|
git config --local user.email "sass.bot.beep.boop@gmail.com"
|
2018-02-04 04:41:36 +01:00
|
|
|
travis_cmd pub run grinder update_homebrew
|
2018-02-04 03:47:56 +01:00
|
|
|
travis_fold end homebrew
|
2018-05-03 20:47:32 +02:00
|
|
|
|
|
|
|
travis_fold start chocolatey
|
|
|
|
travis_cmd pub run grinder update_chocolatey
|
|
|
|
travis_fold end chocolatey
|