message: chore: adapt travis scripts
diff: @@ -3,19 +3,27 @@ node_js:
  - 8
  before_install:
  - >-
  + if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
  openssl aes-256-cbc
  -K $encrypted_b9bd228152b0_key
  -iv $encrypted_b9bd228152b0_iv
  -in patternplate-deploy.enc
  - -out patternplate-deploy -d
  + -out patternplate-deploy -d;
  + else
  + echo "Skipping deployment, secure env vars not available"
  + fi
  - >-
  + if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
  chmod 600 patternplate-deploy &&
  eval $(ssh-agent -s) &&
  ssh-add patternplate-deploy &&
  - rm patternplate-deploy
  + rm patternplate-deploy;
  + fi
  script:
  - >-
  yarn test &&
  yarn build &&
  yarn components:build &&
  - if [ "$TRAVIS_BRANCH" = "master" ]; then yarn components:deploy; fi
  + if [ "$TRAVIS_SECURE_ENV_VARS" = "true" && "$TRAVIS_BRANCH" = "master" ]; then
  + yarn components:deploy;
  + fi
  