代码拉取完成,页面将自动刷新
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:$TESTS_PASSWORD@github.com/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
- yarn lint
- cd ./../frontend
- yarn install
- yarn lint
- yarn build
cache:
yarn: true
directories:
- node_modules
services:
- rabbitmq
- mongodb
script:
- yarn wdm:update
- yarn wdm:start > /dev/null 2>&1 &
- cd ./../backend
- yarn test
# - cd ./../
# - NODE_ENV=test NODE_CONFIG_DIR='./config' node "./backend/3drepo.js" & sleep 5
# - cd ./frontend
# - yarn e2e
notifications:
email:
recipients:
- devOps@3drepo.org
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。