Compare Unit tests timing to 'machine' executor
@@ -2,25 +2,22 @@ version: 2
jobs:
# Run st2 Unit Tests
unit:
+ machine: true
# 4CPUs & 8GB RAM CircleCI machine
resource_class: large
parallelism: 2
- docker:
- - image: circleci/python:2.7
- - image: mongo:3.4
- - image: rabbitmq:3
+ environment:
+ - TERM: xterm
working_directory: ~/st2
steps:
- checkout
- run:
- # Download the mongo shell, needed to connect to Docker container + delete the DB
- name: Install Mongo Shell
+ name: Prepare the environment
command: |
set -x
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
- echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
- sudo apt-get -qq -y update
- sudo apt-get -qq -y install mongodb-org-shell
+ sudo .circle/install-mongo.sh
+ sudo .circle/configure-rabbitmq.sh
+ sudo apt-get -qq -y install python-virtualenv python-dev
- run:
name: Create stanley user
command: sudo .circle/add-itest-user.sh
