Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Last active May 10, 2017 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BanzaiMan/941e64f2324effb59e5064b6a5d8f924 to your computer and use it in GitHub Desktop.
Save BanzaiMan/941e64f2324effb59e5064b6a5d8f924 to your computer and use it in GitHub Desktop.
docker run --name travis-debug --rm -dit travisci/ci-garnet:packer-1490989530 /sbin/init # start a Docker container
docker exec -it travis-debug bash -l # start a login shell
#### in the Docker container ####
su - travis # switch to user travis
#### these commands updates HHVM the way build job does
sudo find /etc/apt -type f -exec sed -e "/hhvm\\.com/d" -i.bak {} \;
echo "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449
sudo apt-get update -qq
sudo apt-get install -y hhvm
vi /etc/hhvm/php.ini
sudo vi /etc/hhvm/php.ini # see the content in php.ini
grep session.save_path /etc/hhvm/php.ini | cut -d= -f2 | sudo xargs mkdir -m 01733 -p
#### End of HHVM update
git clone --depth=50 https://github.com/erusev/parsedown.git erusev/parsedown
cd erusev/parsedown/
git fetch origin +refs/pull/499/merge:
git checkout -qf FETCH_HEAD
phpenv global hhvm
composer self-update 1.0.0
composer self-update
wget -O phpunit https://phar.phpunit.de/phpunit-5.7.2.phar
chmod +x phpunit
./phpunit
; php options
session.save_handler = files
session.save_path = /var/lib/hhvm/sessions
session.gc_maxlifetime = 1440
; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
date.timezone = "UTC"
hhvm.libxml.ext_entity_whitelist=file,http,https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment