pulumi/scripts/publish_packages.sh
Joe Duffy 98aaf12cdf
Reenable Pylint (#1024)
This change uses virtualenv to insulate us from platform differences
in our building of the Python SDK, and to create an isolated Python 2
environment.  This includes meaning we don't need to worry about the
specific location and behavior of Pylint.  I *think* this will work
no matter whether it's Mac, Ubuntu, ArchLinux, Windows, and so on.

We do install to the --user directory in the install target using
`pip install -e`, however, which enables the machine-wide symlinking
that we need to support various workflows.

This fixes pulumi/pulumi#1007.
2018-03-09 15:11:37 -08:00

19 lines
588 B
Bash
Executable file

#!/bin/bash
# publish_packages.sh uploads our packages to package repositories like npm
set -o nounset -o errexit -o pipefail
ROOT=$(dirname $0)/..
if [[ "${TRAVIS_OS_NAME:-}" == "linux" ]]; then
echo "Publishing NPM package to NPMjs.com:"
pushd ${ROOT}/sdk/nodejs/bin && \
npm publish && \
npm info 2>/dev/null || true && \
popd
echo "Publishing Pip package to pulumi.com:"
twine upload \
--repository-url https://pypi.pulumi.com?token=${PULUMI_API_TOKEN} \
-u pulumi -p pulumi \
${ROOT}/sdk/python/env/lib/dist/*.whl
fi