forked from Blockrazor/blockrazor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 858 Bytes
/
.travis.yml
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
sudo: required
language: node_js
addons:
chrome: stable
node_js:
- '8'
before_install:
- sudo apt-get update
- sudo apt-get install -y g++ build-essential
- export LC_ALL=C
- curl https://install.meteor.com | /bin/sh
- export PATH="$HOME/.meteor:$PATH"
- npm install selenium-standalone@latest -g
- selenium-standalone install
- selenium-standalone start &
cache:
directories:
- node_modules
- .meteor
before_script:
- meteor npm install
- meteor npm install --unsafe wdio-mocha-framework webdriverio assert
- meteor &
- sleep 300 # wait for Meteor to start, it takes some time, 5 minutes should be sufficient
script:
- ./node_modules/.bin/wdio wdio.conf.js # client side tests with wdio
- meteor test --driver-package=meteortesting:mocha --once --port 5000 # unit tests