Use machine executor for Integration tests
@@ -8,9 +8,10 @@ jobs:
steps:
- checkout
- run:
- name: Start services
+ name: Prepare the environment
command: |
set -x
+ sudo apt-get -qq -y install python-virtualenv python-dev
sudo service rabbitmq-server start
sudo service mongod start
- run:
@@ -18,41 +19,30 @@ jobs:
command: sudo .circle/add-itest-user.sh
- run:
name: Install pip requirements
- command: |
- set -x
- sudo apt-get -qq -y install python-virtualenv python-dev
- make requirements
+ command: make requirements
- run:
name: Run st2 Unit Tests
command: make ci-unit
# Run Integration tests
integration:
- docker:
- - image: buildpack-deps:trusty
- - image: mongo:3.4
- - image: rabbitmq:3
+ machine: true
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/ubuntu trusty/mongodb-org/3.4 multiverse" | 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 apt-get -qq -y install python-virtualenv python-dev
+ sudo service rabbitmq-server start
+ sudo service mongod start
- run:
name: Create stanley user
command: sudo .circle/add-itest-user.sh
- run:
name: Install pip requirements
- command: |
- set -x
- sudo apt-get -qq -y install python-virtualenv python-dev
- make requirements
+ command: make requirements
- run:
name: Run st2 Integration Tests
command: make ci-integration
