forked from illuminate3/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (60 loc) · 1.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This script is used by Travis CI to run automatically Continuous test integration
# from ToManage ERP GitHub repository.
# For syntax, see https://docs.travis-ci.com/user/languages/javascript-with-nodejs/
dist: trusty
sudo: required
language: node_js
# Start on every boot
services:
- redis-server
- mongodb
node_js:
- "8"
- "6"
- "4"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y build-essential graphicsmagick
# Extract dump install database
- sudo tar xzf dump/install.tgz -C tests/dump/
# Restore demo database
- mongorestore --port 27017 --db demo tests/dump/install/
# Copy config file
- sudo cp tests/config ./config
install:
- npm install
#- npm install jshint --save-dev
- npm install [email protected] babel-eslint@7 --save-dev
- npm install htmlhint --save-dev
- npm install csslint --save-dev
- npm install mocha --save-dev
before_script:
- |
echo Start travis
echo Current dir is `pwd`
echo Home dir is `echo ~`
echo TRAVIS_BUILD_DIR is $TRAVIS_BUILD_DIR
script:
- |
echo "Start application"
node debug.js &
sleep 5
- |
echo "Checking coding style and syntax errors"
#npm run test-jshint
#npm run test-eslint
- |
echo "Checking HTML coding style"
#npm run test-htmlhint
- |
echo "Checking CSS coding style"
#npm run test-csslint
- |
echo "Unit testing"
npm run test-mocha
after_success:
- |
echo Success
after_failure:
- |
echo Failure