2018-12-12 09:50:04 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
machine: true
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Setup
|
2020-02-10 09:26:55 +00:00
|
|
|
command: |
|
2018-12-12 09:50:04 +00:00
|
|
|
sudo pip install --ignore-installed setuptools
|
|
|
|
sudo pip install urllib3 pyOpenSSL ndg-httpsclient pyasn1
|
|
|
|
sudo cp -r ~/.ssh/* /root/.ssh
|
|
|
|
mkdir -p ~/.bench
|
|
|
|
mkdir -p /tmp/.bench
|
|
|
|
cp -r ~/repo/* ~/.bench
|
|
|
|
cp -r ~/repo/* /tmp/.bench
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Install Bench (Production)
|
|
|
|
command: sudo python ~/repo/playbooks/install.py --user travis --run-travis --production
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Setup Tests
|
|
|
|
command: |
|
|
|
|
cd ~
|
2020-02-10 09:26:55 +00:00
|
|
|
sudo pip install --upgrade pip
|
2018-12-12 09:50:04 +00:00
|
|
|
sudo pip install -e ~/.bench
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Run Tests
|
|
|
|
command: sudo -E python -m unittest -v bench.tests.test_setup_production
|