[ci]Cleanup unused commands
version: 2.1
+# Use this orb install python dependences.
+orbs:
+ python: circleci/python@0.3.0
+
commands:
+ # For installing dep and building toppra C++ API
build_cpp:
description: "Install dependencies (C++) and build toppra C++ API"
parameters:
@@ -48,41 +53,15 @@ commands:
make -j4
working_directory: ~/repo/cpp
- install_python:
- parameters:
- python-version:
- type: string
- default: "3"
- description: "Install Python dependencies and toppra Python API"
- steps:
- - restore_cache:
- keys:
- - v2-dependencies<< parameters.python-version >>-{{ checksum "requirements<< parameters.python-version >>.txt" }}
-
- - run:
- name: Install Python dependencies
- command: |
- virtualenv --python python<< parameters.python-version >> venv3 && . venv3/bin/activate
- pip install numpy cython invoke # absolute minimum to run setup.py
- invoke install-solvers
- pip install -e .[dev]
-
- - save_cache:
- paths:
- - ./venv3
- key: v2-dependencies<< parameters.python-version >>-{{ checksum "requirements<< parameters.python-version >>.txt" }}
-
-orbs:
- python: circleci/python@0.3.0
-
jobs:
- # Test the base python installation on multiple environment.
+ # Test the base python installation on multiple environments. In
+ # addition, run lint task.
python:
parameters:
python-version:
type: string
default: ""
- tox-base:
+ tox-base-cmd:
type: string
default: "py"
docker:
@@ -96,7 +75,7 @@ jobs:
command: |
virtualenv --python python3.7 venv3 && . venv3/bin/activate
pip install tox numpy cython # need numpy and cython to create the sdist
- tox -e << parameters.tox-base >><< parameters.python-version >>
+ tox -e << parameters.tox-base-cmd >><< parameters.python-version >>
- store_test_results:
path: test-results
@@ -104,7 +83,9 @@ jobs:
- store_artifacts:
path: test-results
- # Test the cpp api and bindings on python3.7
+ # Test the cpp api and bindings on python3.6 The base image of this
+ # job is Ubuntu 18.04, which is required to install pinocchio and
+ # other deps.
cpp-python36:
docker:
- image: cimg/python:3.6
@@ -182,14 +163,12 @@ workflows:
version: 2
integrate:
jobs:
-
- ## temporary disable
- # - python:
- # tox-base: "lint"
- # - python:
- # matrix:
- # parameters:
- # python-version: ["27", "36", "37"]
+ - python:
+ tox-base-cmd: "lint"
+ - python:
+ matrix:
+ parameters:
+ python-version: ["27", "36", "37"]
- cpp-python36
