2018-01-18 08:23:17 -05:00
|
|
|
version: 2
|
|
|
|
aliases:
|
|
|
|
common: &common
|
|
|
|
macos:
|
|
|
|
xcode: 9.0
|
|
|
|
update-submodules: &update-submodules
|
|
|
|
run:
|
|
|
|
name: Update submodules
|
|
|
|
command: git submodule update --init --recursive
|
|
|
|
install-dependencies: &install-dependencies
|
|
|
|
run:
|
|
|
|
name: Install dependencies
|
|
|
|
command: .circleci/install_dependencies.sh
|
|
|
|
run-tests: &run-tests
|
|
|
|
run:
|
|
|
|
name: Run tests
|
|
|
|
command: ./run_tests.py --coverage
|
|
|
|
upload-coverage: &upload-coverage
|
|
|
|
run:
|
|
|
|
name: Upload coverage
|
|
|
|
command: bash <(curl -s https://codecov.io/bash)
|
|
|
|
# Increase the version key to clear the cache.
|
|
|
|
save-cache: &save-cache
|
|
|
|
save_cache:
|
2018-04-16 11:43:46 -04:00
|
|
|
key: v2-ycm-{{ .Environment.CIRCLE_JOB }}
|
2018-01-18 08:23:17 -05:00
|
|
|
paths:
|
|
|
|
- ~/Library/Caches/Homebrew
|
2018-04-16 11:43:46 -04:00
|
|
|
- ~/Library/Caches/pip
|
2018-01-18 08:23:17 -05:00
|
|
|
- ~/.pyenv
|
|
|
|
restore-cache: &restore-cache
|
|
|
|
restore_cache:
|
2018-04-16 11:43:46 -04:00
|
|
|
key: v2-ycm-{{ .Environment.CIRCLE_JOB }}
|
2018-01-18 08:23:17 -05:00
|
|
|
jobs:
|
|
|
|
python2:
|
|
|
|
<<: *common
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *update-submodules
|
|
|
|
- *restore-cache
|
|
|
|
- *install-dependencies
|
|
|
|
- *save-cache
|
|
|
|
- *run-tests
|
|
|
|
- *upload-coverage
|
|
|
|
environment:
|
|
|
|
YCMD_PYTHON_VERSION: 2.7
|
|
|
|
python3:
|
|
|
|
<<: *common
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *update-submodules
|
|
|
|
- *restore-cache
|
|
|
|
- *install-dependencies
|
|
|
|
- *save-cache
|
|
|
|
- *run-tests
|
|
|
|
- *upload-coverage
|
|
|
|
environment:
|
2018-01-24 11:54:57 -05:00
|
|
|
YCMD_PYTHON_VERSION: 3.4
|
2018-01-18 08:23:17 -05:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- python2
|
|
|
|
- python3
|