Add circleci configuration
This commit is contained in:
parent
a0316d35b0
commit
74429d84aa
1 changed files with 77 additions and 0 deletions
77
.circleci/config.yml
Normal file
77
.circleci/config.yml
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
|
||||||
|
test: &test
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install Dependencies
|
||||||
|
command: apt-get update && apt-get install -y curl
|
||||||
|
- run:
|
||||||
|
name: Download requirements
|
||||||
|
command: |
|
||||||
|
mkdir -p ~/bin
|
||||||
|
curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > ~/bin/revolver
|
||||||
|
curl -L https://github.com/molovo/zunit/releases/download/v0.8.2/zunit > ~/bin/zunit
|
||||||
|
chmod u+x ~/bin/{revolver,zunit}
|
||||||
|
- run:
|
||||||
|
name: Run Zunit
|
||||||
|
command: |
|
||||||
|
export TERM="xterm-256color"
|
||||||
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
zunit --verbose
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
docker:
|
||||||
|
- image: "python:3.7-stretch"
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: run restructuredtext linter
|
||||||
|
command: |
|
||||||
|
pip install restructuredtext_lint
|
||||||
|
rst-lint *.rst
|
||||||
|
|
||||||
|
test-zsh-5.1:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.1.1"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
test-zsh-5.2:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.2"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
test-zsh-5.3:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.3.1"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
test-zsh-5.4:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.4.2"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
test-zsh-5.5:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.5.1"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
test-zsh-5.6:
|
||||||
|
docker:
|
||||||
|
- image: "zshusers/zsh:5.6.2"
|
||||||
|
<<: *test
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
test:
|
||||||
|
jobs:
|
||||||
|
- lint
|
||||||
|
- test-zsh-5.1
|
||||||
|
- test-zsh-5.2
|
||||||
|
- test-zsh-5.3
|
||||||
|
- test-zsh-5.4
|
||||||
|
- test-zsh-5.5
|
||||||
|
- test-zsh-5.6
|
Loading…
Add table
Add a link
Reference in a new issue