This repository was archived by the owner on Feb 16, 2021. It is now read-only.
forked from Galeria-Kaufhof/gulp-galen
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
47 lines (42 loc) · 1.23 KB
/
.travis.yml
File metadata and controls
47 lines (42 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: required
dist: trusty
language: node_js
env:
matrix:
- NODE_VERSION="8" NPM_VERSION="5" DISPLAY=:99
- NODE_VERSION="8" NPM_VERSION="6" DISPLAY=:99
- NODE_VERSION="9" NPM_VERSION="5" DISPLAY=:99
- NODE_VERSION="10" NPM_VERSION="6" DISPLAY=:99
services:
- docker
addons:
# From some tests it seems you can only have one firefox addon.
# Adding two results in the last one defined being the one installed.
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- "node_modules"
before_install:
# Prepare node and npm
- nvm install $NODE_VERSION && nvm use $NODE_VERSION
- npm install -g npm@$NPM_VERSION
- jdk_switcher use oraclejdk8
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 +extension RANDR -ac -screen 0 1280x1024x16"
before_script:
- npm install -g grunt
- npm install -g jshint
- npm install -g mocha
- npm install -g istanbul
- npm install -g istanbul-coveralls
- npm install -g nodeunit
- npm install
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- npm test