forked from 3drepo/3drepo.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 1.22 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
language: node_js
git:
submodules: false
depth: 1
node_js:
- "8.9.3"
sudo: true
dist: trusty
addons:
apt:
sources:
- mongodb-3.2-precise
chrome: stable
hosts:
- test.127.0.0.1
before_install:
- until nc -z localhost 27017; do echo "waiting for mongo"; sleep 1; done
- mkdir -p submodules
- test_ver=`cat backend/test/testDBVersion`
- cd submodules
- git clone https://$TESTS_USER:[email protected]/3drepo/tests.git
- cd tests
- git checkout $test_ver
- git status
- cd backend && mongorestore
- cd ../../../
- cp -r ./submodules/tests/frontend/pug/legal/ ./pug/legal
install:
- cd ./backend
- yarn install
- cd ./../frontend
- yarn install
- yarn run lint
- yarn run build
cache:
yarn: true
directories:
- node_modules
services:
- rabbitmq
- mongodb
script:
- yarn run wdm:update
- yarn run wdm:start > /dev/null 2>&1 &
- cd ./../backend
- yarn run test
# - cd ./../
# - NODE_ENV=test NODE_CONFIG_DIR='./config' node "./backend/3drepo.js" & sleep 5
# - cd ./frontend
# - yarn run e2e
notifications:
email:
recipients: