forked from superdesk/superdesk-planning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (38 loc) · 1.1 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
language: python
python: 3.5
sudo: required
env:
global:
- TRAVIS_NODE_VERSION="6"
matrix:
- TEST_TYPE="unit"
- TEST_TYPE="e2e"
services:
- mongodb
- redis-server
addons:
apt:
sources:
- mongodb-3.0-precise
- elasticsearch-2.x
- google-chrome
packages:
- mongodb-org-server
- elasticsearch
- google-chrome-stable
cache:
- pip
- npm
before_install:
- sudo apt-get purge elasticsearch
- sudo apt-get install -t stable elasticsearch && sudo service elasticsearch restart
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- node --version
- export CHROME_BIN=`which google-chrome` && $CHROME_BIN --version
- chmod a+x ./scripts/*
script:
- ./scripts/install_run_$TEST_TYPE.sh
after_script:
- test $TEST_TYPE = "e2e" && killall -9 python
after_success:
- test $TEST_TYPE = "unit" && coveralls-lcov -v -n coverage/lcov.info > coverage.json && coveralls --merge=coverage.json