forked from fossasia/open-event-wsgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 804 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
35
36
37
38
39
40
41
42
43
44
45
dist: bionic
language: node_js
node_js:
- 12
services:
- docker
- redis
- xvfb
env:
- TESTFOLDER=test/serverTest.js
- TESTFOLDER=test/roomsAndSpeakers.js
- TESTFOLDER=test/tracks.js
- TESTFOLDER=test/generatorAndSchedule.js
- TESTFOLDER=test/sessionEventAndCoC.js
addons:
chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- chromium-chromedriver
# installing required items for build
install:
- npm install -g yarn
- yarn global add nyc mocha
- yarn
# testing script
script:
- nyc mocha --exit -- $TESTFOLDER
# notify codecov and deploy to cloud
after_success:
if ([ "$TESTFOLDER" == "test/serverTest.js" ]); then
bash <(curl -s https://codecov.io/bash);
fi
branches:
only:
- master
- development