forked from codecombat/codecombat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.36 KB
/
.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
46
47
48
49
50
51
sudo: false
language: node_js
node_js:
- 6.12.2
env:
- CXX=g++-4.8
services:
- mongodb
addons:
firefox: "55.0"
apt:
sources:
- mongodb-upstart
- ubuntu-toolchain-r-test
packages:
- mongodb-org-server
- g++-4.8
cache:
directories:
- node_modules
- bower_components
before_install:
- export COCO_TRAVIS_TEST=1
- npm install -g npm@3.x
before_script:
- npm install --ignore-scripts
- npm install node-sass
- npm install
- npm update
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "node index.js --unittest &"
- n=0
- until [ $n -ge 60 ]; do curl http://localhost:3000 && break; n=$[$n+1]; sleep 1; done
script:
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters dots"
- "npm run jasmine"
- "npm run coverage"
after_script:
- "npm install coveralls && cat ./coverage/lcov.info | coveralls"
notifications:
slack:
rooms:
- secure: o/fVW216/h0hacMz3y4+NvvJEY8w6li690MggGvjV7zH89eP2oT3UmHikBxrhm0ooEP0blPlaLJ6seeY9LLRLsebBO3yQbpSSOvF3aAs0VoW3+r9oPwJYBvOg1dcwAHUcJiR5+HLzv+l4PL4SJsnp66hRDqUUB08F3FkUz96JN0=
template:
- Tests failed <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository}@%{branch} by %{author} %{result} <!here>
on_success: never
on_failure: always
on_start: never
on_pull_requests: false
dist: trusty