dart-sass/tool/travis/utils.sh
Natalie Weizenbaum 9260e4ba4c Deploy to each platform as a separate job
This ensures that each deployment is independent of all the
others (except Heroku, which we only want to update once *everything*
succeeds).
2018-06-05 16:14:03 -04:00

21 lines
671 B
Bash

# 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.
# Decrypts the encrypted credentials using Travis's private key and saves them
# to credentials.tar.
function decrypt_credentials() {
openssl aes-256-cbc -K $encrypted_d472b0f964cc_key \
-iv $encrypted_d472b0f964cc_iv \
-in tool/travis/credentials.tar.enc \
-out credentials.tar -d
}
# Prints the invocation of a command and then runs that command, in the same way
# Travis's internal infrastructure does.
function travis_cmd() {
echo "\$ $@"
"$@"
}