我的测试在circle 1.0 config上工作正常。但是当我尝试迁移到新的2.0配置时,它给了我这个错误 -
[Error: Selenium server did not start.Another Selenium process may already be running or your java version may be out of date.]
我已经尝试过添加jre / jdk安装。我使用ssh登录并检查 - 4444端口上没有运行任何其他东西并安装了java ..所以我不确定是什么问题。
这是我的1.0配置
machine:
node:
version: 4.6.2
dependencies:
pre:
- echo $METEOR_SETTINGS > settings.json
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
cache_directories:
- "~/.npm"
- "~/.meteor"
- "node_modules"
- "./.meteor/local/build"
- "./.meteor/local/bundler-cache"
- "./.meteor/local/isopacks"
- "./.meteor/local/plugin-cache"
- "/opt/circleci/nodejs/v4.6.2/bin"
- "/opt/circleci/nodejs/v4.6.2/lib/node_modules"
override:
- ./.testing/upgrade_chrome_version.sh
- ./.testing/cache_meteor.sh
- ./.testing/cache_npm_dependencies.sh
- ./.testing/cache_build_and_dependencies.sh
checkout:
post:
- git submodule update --init
test:
override:
- case $CIRCLE_NODE_INDEX in 0) meteor npm test ;; 1) ./tests/acceptance_run ;; esac:
parallel: true
这是我的2.0配置
version: 2
jobs:
build:
working_directory: ~/newkeyz
docker:
- image: circleci/node:4.8.3-browsers
environment:
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
- image: selenium/standalone-chrome-debug
- image: mongo:3.4.4
steps:
- checkout
- restore_cache:
name: Restore Meteor Cache
key: meteor-cache-{{ checksum ".meteor/release" }}
- restore_cache:
name : Restore NPM Cache
key: npm-cache-{{ checksum "package.json" }}
- restore_cache:
name: Restore Meteor Package Cache
key: packages-cache-{{ checksum ".meteor/versions" }}
- run: sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && sudo dpkg-reconfigure --frontend=noninteractive locales
- run: sudo apt-get install default-jdk
- run:
name: Create Settings File
command: echo $METEOR_SETTINGS > settings.json
- run: ./.testing/cache_meteor.sh
- save_cache:
name: Save Meteor Cache
key: meteor-cache-{{ checksum ".meteor/release" }}
paths:
- '~/.meteor'
- run: meteor npm install
- run: ./.testing/cache_npm_dependencies.sh
- save_cache:
name: Save NPM Cache
key: npm-cache-{{ checksum "package.json" }}
paths:
- '~/.npm'
- 'node_modules'
- run:
name: Run Test
command: ./tests/acceptance_run
- save_cache:
key: packages-cache-{{ checksum ".meteor/versions" }}
paths:
- './.meteor/local/build'
- './.meteor/local/bundler-cache'
- './.meteor/local/isopacks'
- './.meteor/local/plugin-cache'