mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
* develop: Updated travis for lastest distro and chromedriver. Update darkwire to v1.5.8 Adds rel=noreferrer and rel=noopener to autolinks (Fixes #46) Fixes XSS attack through user renaming (#47) Dockerfile strictly requiring njs 6.7
33 lines
821 B
YAML
33 lines
821 B
YAML
sudo: required
|
|
dist: trusty
|
|
language: node_js
|
|
node_js:
|
|
- 5.2.0
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
- google-chrome-beta
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get install -y libappindicator1 fonts-liberation
|
|
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
- sudo dpkg -i google-chrome*.deb
|
|
- wget http://chromedriver.storage.googleapis.com/2.24/chromedriver_linux64.zip
|
|
- unzip chromedriver_linux64
|
|
- sudo mv chromedriver /usr/bin
|
|
before_script:
|
|
- export CHROME_BIN=/usr/bin/google-chrome
|
|
- "export DISPLAY=:99.0"
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
- sleep 5 # give xvfb some time to start
|
|
- gulp bundle
|
|
- npm start &
|
|
- sleep 5
|
|
script: npm run test-travis
|