2018-01-29 03:34:05 +00:00
|
|
|
sudo: required
|
|
|
|
before_install:
|
|
|
|
# Prevents a shared object .so error when running wkhtmltopdf on certain
|
|
|
|
# platforms (e.g., vanilla Ubuntu 16.04 LTS). Not necessary on current Travis.
|
|
|
|
# - sudo apt-get install libxrender1
|
|
|
|
install:
|
|
|
|
# Install & link HackMyResume
|
|
|
|
- npm install && npm link
|
|
|
|
# Download and extract the latest wkhtmltopdf binaries
|
|
|
|
- mkdir tmp && wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -O tmp/wk.tar.xz
|
|
|
|
- tar -xf tmp/wk.tar.xz -C ./tmp
|
|
|
|
# Copy wkhtmltopdf binaries to /usr/bin (also makes them path-accessible)
|
|
|
|
- sudo cp -R ./tmp/wkhtmltox/bin/* /usr/bin/
|
|
|
|
# Now you can invoke "wkhtmltopdf" and "wkhtmltoimage" safely in tests.
|
|
|
|
- wkhtmltopdf -V
|
|
|
|
- wkhtmltoimage -V
|
2015-12-24 23:05:58 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "4.0"
|
2018-01-26 15:02:26 +00:00
|
|
|
- "4"
|
|
|
|
- "5"
|
|
|
|
- "6"
|
|
|
|
- "7"
|
|
|
|
- "8"
|
|
|
|
- "9"
|
|
|
|
- "lts/*"
|