|
5 | 5 | - NOSE_VERBOSE=2 |
6 | 6 | - NOSE_WITH_COVERAGE=true |
7 | 7 | - NOSE_COVER_PACKAGE=neovim |
| 8 | + matrix: |
| 9 | + - CI_TARGET=tests |
| 10 | +matrix: |
| 11 | + include: |
| 12 | + - python: 2.7 |
| 13 | + env: CI_TARGET=flake |
| 14 | + - python: 3.4 |
| 15 | + env: CI_TARGET=flake |
8 | 16 | python: |
9 | 17 | # If the build matrix gets bigger, also update the number of runs |
10 | 18 | # at the bottom of .scrutinizer.yml. |
11 | | - - "2.6" |
12 | | - - "2.7" |
13 | | - - "3.2" |
14 | | - - "3.3" |
15 | | - - "3.4" |
16 | | - - "pypy" |
| 19 | + - 2.6 |
| 20 | + - 2.7 |
| 21 | + - 3.2 |
| 22 | + - 3.3 |
| 23 | + - 3.4 |
| 24 | + - pypy |
17 | 25 | before_install: |
18 | | - - sudo apt-get update -qq |
19 | | - - sudo apt-get install expect -q |
20 | | - - git clone --depth=1 -b master git://github.com/neovim/neovim nvim |
21 | | - - sudo git clone --depth=1 git://github.com/neovim/deps /opt/neovim-deps |
22 | | - - pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming |
23 | | - - pip install -q scrutinizer-ocular |
| 26 | + - if [ $CI_TARGET = tests ]; then |
| 27 | + sudo apt-get update -qq; |
| 28 | + sudo apt-get install expect -q; |
| 29 | + eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"; |
| 30 | + pip install -q scrutinizer-ocular; |
| 31 | + else |
| 32 | + pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming; |
| 33 | + fi |
24 | 34 | install: |
25 | 35 | - pip install . |
26 | | - - prefix="/opt/neovim-deps/64" |
27 | | - - eval $($prefix/usr/bin/luarocks path) |
28 | | - - export PATH="$prefix/usr/bin:$PATH" |
29 | | - - export PKG_CONFIG_PATH="$prefix/usr/lib/pkgconfig" |
30 | | - - export USE_BUNDLED_DEPS=OFF |
31 | | - - cd nvim && make && cd .. |
32 | 36 | script: |
33 | | - - ./nvim/scripts/run-api-tests.exp "nosetests" "./nvim/build/bin/nvim -u NONE" |
34 | | - - NVIM_SPAWN_ARGV='["./nvim/build/bin/nvim", "-u", "NONE", "--embed"]' nosetests |
35 | | - - flake8 --exclude ./neovim/plugins neovim |
| 37 | + - if [ $CI_TARGET = tests ]; then |
| 38 | + ./scripts/run-api-tests.exp "nosetests" "nvim -u NONE"; |
| 39 | + NVIM_SPAWN_ARGV='["nvim", "-u", "NONE", "--embed"]' nosetests; |
| 40 | + else |
| 41 | + flake8 --exclude ./neovim/plugins neovim; |
| 42 | + fi |
36 | 43 | after_script: |
37 | | - - ocular |
| 44 | + - if [ $CI_TARGET = tests ]; then |
| 45 | + ocular; |
| 46 | + fi |
0 commit comments