mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
The 'lupa' python package provides a simple way to seamless integrate lua and python code. This commit replaces vroom by a python script that exposes the 'neovim' package to a lua state, and invokes busted to run functional tests. This is a temporary solution that will enable writing functional tests using lua/bused while a lua client library is not available. The reason for dropping vroom is flexibility: Lua/busted has a nice DSL-style syntax while also providing the customization power of a full programming language. Another reason is to use a single framework for unit/functional tests. Two other changes were performed in this commit: - Instead of "gcc-unittest/gcc-ia32", the travis builds for gcc are now identified by "gcc/gcc-32". They will run unit/functional tests for both 64 and 32 bits. - Old integration tests(in src/nvim/testdir) are now ran by the 'oldtest' target
26 lines
1.0 KiB
YAML
26 lines
1.0 KiB
YAML
language: c
|
|
env:
|
|
global:
|
|
- PROJECT_ROOT="$(pwd)"
|
|
- CI_SCRIPTS="$PROJECT_ROOT/.ci"
|
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
|
# via the "travis encrypt" command using the project repo's public key
|
|
- secure: "QEz92NyItkzQu52kCFD928jEwUYnA2OIgSyeNrp+Y3gm5rOmSZerY8hGiXyNZxocap9+qIPCapRRYU3ZYKWZPeucWMLN3aIjxAFdhugKbnmNYE1jFugb6b8N3SxiX/3206NHXlYaz0OZhh6OBAFmPUXamJC8OrWVgPNPo7wv4UQ="
|
|
matrix:
|
|
- CI_TARGET=clang-asan
|
|
- CI_TARGET=gcc
|
|
- CI_TARGET=gcc-32
|
|
- CI_TARGET=clint
|
|
- CI_TARGET=api-python
|
|
- CI_TARGET=coverity
|
|
before_install:
|
|
# Adds user to a dummy group.
|
|
# That allows to test changing the group of the file by `os_fchown`.
|
|
- sudo groupadd chown_test
|
|
- sudo usermod -a -G chown_test ${USER}
|
|
script:
|
|
# This will pass the environment variables down to a bash process which runs
|
|
# as $USER, while retaining the environment variables defined and belonging
|
|
# to secondary groups given above in usermod.
|
|
- sudo -E su ${USER} -c "sh -e \"${CI_SCRIPTS}/${CI_TARGET}.sh\""
|