#!/bin/sh # - Run `$(command -v winpty) docker run --rm -it alpine sh -c "REPO='https://github.com//'; USERNAME=; PASSWORD=; $(cat travis-enc.sh)"` # - Check the log and copy the secure key to `.travis.yml`: https://docs.travis-ci.com/user/environment-variables/#Defining-encrypted-variables-in-.travis.yml apk add -U --no-cache git openssh ruby ruby-dev libffi-dev build-base ruby-dev libc-dev libffi-dev linux-headers gem install travis --no-rdoc --no-ri git clone $REPO ./tmp-repo && cd tmp-repo travis login --org --auto travis encrypt DOCKER_USER=$USERNAME travis encrypt DOCKER_PASS=$PASSWORD