James McCoy
d93e397232
ci: s/TRAVIS_OS_NAME/CI_OS_NAME/ for non-Travis-specific code
2020-11-24 21:26:02 -05:00
James McCoy
25a8385cd1
ci: Rename travis_fold to ci_fold and add GHA support
2020-11-13 13:38:12 -05:00
James McCoy
eb2aaed5cc
Add Linux ASAN GitHub Action
2020-11-13 13:36:56 -05:00
James McCoy
d0714e87d6
build: Rename TRAVIS_BUILD_DIR to CI_BUILD_DIR
2020-11-13 13:36:56 -05:00
James McCoy
2516386c6b
travis: Install clang-11 for ASAN/UBSAN job
...
[skip appveyor]
2020-09-04 10:59:16 -04:00
Justin M. Keyes
1b42e95ece
ci/travis: Enable ipv6 #12182
...
ref: a39c8b7ce3
ref: https://github.com/vim/vim/commit/bfe13ccc58ccb96f243a58309800410db1ccb52c
Also:
- Remove unused macos_rvm_dance() function. (It was there for reference,
but we have since resolved (or gave up) on Travis + macOS + ruby.
2020-04-25 17:20:37 -07:00
Daniel Hahler
8f20c50caa
ci: submit_coverage: run luacov actually ( #11169 )
...
Apparently this got lost with #11127 / 77a551b65 .
2019-10-07 00:44:54 +02:00
Daniel Hahler
77a551b657
ci: coverage for Lua (no Windows, using luacov) ( #11127 )
2019-10-04 16:09:42 +02:00
Daniel Hahler
3d3c783fea
ci: Travis: simplify 32bit build ( #11093 )
...
- `CMAKE_SYSTEM_LIBRARY_PATH` should not be used, and is a
semicolon-separated list anyway [1]
1: https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_LIBRARY_PATH.html
2019-10-03 05:40:25 +02:00
Daniel Hahler
6cc76194b2
tests: use runtime from build for doc/tags with :help ( #10479 )
...
This is better practice in general, and allows to remove the "helptags
ALL" hacks.
Ref: https://github.com/neovim/neovim/issues/8824
Ref: https://github.com/neovim/neovim/commit/f1b67c3453c
* Makefile: fix dependencies with regard to helptags
- use the file as the main target to avoid unnecessary triggering
- use "make oldtest" on Travis to ensure it gets built
2019-08-28 22:47:54 +02:00
Daniel Hahler
7c0ae06664
ci: Travis: build.sh: use cat "-vet" for osx
...
Fixes:
cat: illegal option -- A
usage: cat [-benstuv] [file ...]
Broken in 5cc45bb41 .
squash! ci: Travis: build.sh: use cat "-vET" for osx [skip appveyor]
cat -vet
2019-08-14 23:17:42 +02:00
Daniel Hahler
5cc45bb419
ci: Travis: check logs for TSan also ( #10775 )
...
Uses `cat -A` with early "*San" check:
This prints terminal escape sequences as-is (for debugging), and does
not cause (display) issues with the Travis log.
Ref: https://github.com/neovim/neovim/pull/10591#issuecomment-521248233
2019-08-14 18:27:08 +02:00
Daniel Hahler
208f56d3b9
ci: Travis: improve/revisit caching ( #10358 )
...
- use CACHE_NVIM_DEPS_DIR
- do not cache pip
This is handled through http caches in general/better, and it is not
used much anyway.
- do not cache DEPS_DOWNLOAD_DIR
Built deps are cached, downloads are not needed then.
- display ccache stats before clearing
- do not cache ccache stats
- improve output of `du` (do not list pages of output for "/home/travis/.cache/go-build")
2019-07-30 23:21:12 +02:00
Daniel Hahler
48884ac3b3
ci: Travis: no need for asan_symbolize ( #10627 )
...
Having llvm-symbolizer in the $PATH is enough.
- check_logs: remove log after displaying it
Otherwise it would be displayed/symbolized again and again.
E.g. in https://api.travis-ci.org/v3/job/564477704/log.txt .
2019-07-28 11:48:54 +02:00
Daniel Hahler
d1faf900b1
coverage: use "cd" with gcovr ( #10594 )
...
This makes the invocation compatible for the upcoming gcovr 4.2 release,
and is the correct way of invoking it.
Ref: https://github.com/gcovr/gcovr/commit/a782972#commitcomment-34420728
2019-07-25 01:11:17 +02:00
Daniel Hahler
a04e0c8db2
Revert "Downgrade to clang-4.0 to avoid false-positive warnings from clang" [skip appveyor] ( #10487 )
...
This reverts commit 2cbac719c3 .
2019-07-18 08:49:37 +02:00
Daniel Hahler
28a86608a8
CI: improve gcov handling #10404
...
- Move __gcov_flush to process_spawn, for more reliable coverage
tracking of subprocesses
- Travis: use GCOV_ERROR_FILE
- codecov: use "-X fix" to skip "fixing" uploaded coverage data; it
should be handled by codecov's backend instead.
- AppVeyor: no $PATH mangling, which breaks with the improved coverage tracking
due to missing .dll in PATH.
2019-07-07 21:09:37 +02:00
Daniel Hahler
d42bbf363e
ci: Travis: do not close fold on failure [skip ci]
...
This makes it easier to inspect the test failure, without having to open
two folds (typically), and scrolling around.
2019-07-03 00:43:22 +02:00
Daniel Hahler
c62690ccc4
ci: Travis: upgrade OSX images (10.1 => 10.2) ( #10319 )
...
* ci: Travis: upgrade OSX images (10.1 => 10.2)
* ci: nvim-deps: use `cp -a` [skip appveyor]
Symlinks should be preserved.
Ref: https://github.com/neovim/neovim/pull/10319#issuecomment-505410132
2019-06-26 20:06:40 +02:00
Daniel Hahler
e13ae7cae6
ci: revisit/fix coverage uploading ( #10201 )
...
* Add ci/common/submit_coverage.sh, used with Travis and AppVeyor
* use gcovr, with coverage.xml for better branch coverage reporting, and
easier processing of gcov files in general
* codecov: use flags again, with `uname -s` additionally
Ref: https://github.com/neovim/neovim/pull/10227#issuecomment-502923543
* remove now unused parsers.gcov config from codecov.yml
2019-06-25 15:35:33 +02:00
Daniel Hahler
04d03b0cbc
ci/common/test.sh: fix some issues reported by shellcheck
2019-06-17 02:00:58 +02:00
Daniel Hahler
26a9d2cef1
ci: codecov: do not use flags [ci skip] ( #10227 )
...
Using flags results in timeouts on their end when viewing reports, and
is a known issue since months already.
2019-06-15 18:34:00 +02:00
James McCoy
2cbac719c3
Downgrade to clang-4.0 to avoid false-positive warnings from clang
...
* -Wtautological-compare
error: self-comparison always evaluates to true [-Werror,-Wtautological-compare]
for (win_T *wp = ((curtab) == curtab) ? firstwin : (curtab)->tp_firstwin; wp != ((void*)0); wp = wp->w_next) {
* -Wconversion
error: implicit conversion loses floating-point precision: 'const float_T' (aka 'const double') to 'float' [-Werror,-Wconversion]
do { const float_T flt_ = (tv->vval.v_float); switch ((sizeof (flt_) == sizeof (float) ? __fpclassifyf (flt_) : sizeof (flt_) == sizeof (double) ? __fpclassify (flt_) : __fpclassifyl (flt_))) { case 0: { ga_concat(gap, (char_u *)(char_u *) "str2float('nan')"); break; } case 1: { if (flt_ < 0) { ga_append(gap, '-'); } ga_concat(gap, (char_u *)(char_u *) "str2float('inf')"); break; } default: { char numbuf[NUMBUFLEN]; vim_snprintf(numbuf, ((sizeof(numbuf)/sizeof((numbuf)[0])) / ((size_t)(!(sizeof(numbuf) % sizeof((numbuf)[0]))))), "%g", flt_); ga_concat(gap, (char_u *)(char_u *) numbuf); } } } while (0);
~~~~~~~~~~~~~ ^~~~
2018-11-24 22:56:25 +01:00
Justin M. Keyes
3d2493a3fd
CI/travis/macOS: use "sudo rm" to remove cores
...
After bumping Travis macOS to 10.13, it now hangs at:
+ check_core_dumps --delete quiet
+ local del=
+ test --delete = --delete
+ del=1
+ shift
+ local app=quiet
+ test osx = osx
++ find /cores/ -type f -print
+ local 'cores=/cores//core.554
/cores//core.641
/cores//core.801'
+ test -z '/cores//core.554
/cores//core.641
/cores//core.801'
+ local core
+ for core in '$cores'
+ test 1 = 1
+ print_core quiet /cores//core.554
+ local app=quiet
+ local core=/cores//core.554
+ test quiet = quiet
+ echo 'Found core /cores//core.554'
Found core /cores//core.554
+ return 0
+ rm /cores//core.554
override r-------- root/admin for /cores//core.554?
The cores are always present on the Travis macOS 10.13 image! Hilarious.
2018-10-13 23:34:49 +02:00
Justin M. Keyes
acdede50ce
test: Dump $NVIM_LOG_FILE contents ( #8926 )
...
Do this at the test-framework level instead of CI (Travis) scripts.
Then it works for QuickBuild and AppVeyor.
ref eb6dd3e42d
2018-08-28 22:13:34 +02:00
Justin M. Keyes
47f9ab4635
CI/travis: fix restore from cache
...
a369385009 fixed this for "~/.cache/nvim-deps/", but strangely not for
"~/.cache/nvim-deps-downloads/".
ref a369385009
ref #8316
ref #8281
Seen in https://travis-ci.org/neovim/neovim/jobs/414982972 :
Using third-party dependencies from Travis cache (last update: Aug 11 23:00:15 2018).
cp: /Users/travis/build/neovim/neovim/deps-downloads/nvim-deps-downloads/…/nvim-deps-downloads/libvterm/a9c7c6fd20fa35e0ad3e0e98901ca12dfca9c25c.tar.gz:
name too long (not copied)
2018-08-12 12:38:38 +02:00
James McCoy
d5da357925
travis: Enable ccache
2018-05-01 07:02:44 -04:00
Srikanth M
a369385009
ci/travis: fix restore from cache #8316
...
closes #8281
2018-04-24 21:43:13 +02:00
Justin M. Keyes
8f82f95c1c
ci/travis: also cache $DEPS_DOWNLOAD_DIR
...
ref #5166
2018-03-18 14:11:38 +01:00
Justin M. Keyes
b0e5187e49
ci/travis: Don't destroy cache during prepare
...
This change was missed in c7f95fde1b .
ref #5166
2018-03-17 14:26:34 +01:00
Justin M. Keyes
c7f95fde1b
ci/travis: Don't destroy cache during prepare
...
Use `cp -r` instead of `mv`.
Remove use of `dirname`, that was missed in 10cdf8c286 .
closes #5166
2018-03-11 20:29:20 +01:00
Justin M. Keyes
b0b656dd37
ci/travis: rename $BUILD_NVIM_DEPS to $CACHE_ENABLE
2018-03-11 15:38:18 +01:00
Justin M. Keyes
968c7ab17e
ci/travis: use ninja instead of make
2018-03-11 12:45:15 +01:00
James McCoy
9fdd5d7f03
codecov: Submit test suite specific coverage
2018-02-06 23:23:59 -05:00
James McCoy
5da6f0e903
travis: Don't run unit tests for functionaltest-lua build
2018-02-02 07:28:56 -05:00
Justin M. Keyes
6fa0a0a516
ci/travis: macOS: switch ruby version
...
Travis macOS builds are failing because of neovim-ruby gem dependencies.
Switch default ruby to a newer version to make the builds pass.
2018-01-07 20:04:57 +01:00
James McCoy
dd0fa4fd0e
ci: asan_check: No-op unless performing ASAN build
2018-01-02 08:15:32 -05:00
James McCoy
90aae43984
travis: Use Ubuntu's clang instead of llvm's repo
...
The llvm repos commonly have access issues, so removing them will
improve stability of the Travis builds.
Filtering check_log's output through asan_symbolize also avoids the
version dance every time a new clang version makes its way into Travis.
2018-01-02 08:15:31 -05:00
Justin M. Keyes
eb6dd3e42d
ci: Dump $NVIM_LOG_FILE contents
2017-06-07 00:26:21 +02:00
ZyX
09f849b600
Merge branch 'master' into luaviml'/lua
2017-05-08 15:43:45 +03:00
ZyX
e4d0fa6e8d
Do not trace in check_runtime_files
2017-05-01 17:38:21 +03:00
ZyX
1109ca7198
ci: Use \{1,\} in place of \+
2017-05-01 17:36:45 +03:00
ZyX
48fa42153a
ci: Fold output in travis web interface
2017-05-01 16:36:24 +03:00
ZyX
ee4daa6572
ci: Remove x from test x
2017-04-24 23:11:13 +03:00
ZyX
74d5705ca9
ci: Source ci/common/test.sh in run_test_wd subshell
2017-04-24 22:37:36 +03:00
ZyX
85903cb0e6
ci: Make scripts in common be dash-compatible
...
`ulimit` may still be not present: dash and busybox support it, but posh does
not.
2017-04-24 22:37:36 +03:00
ZyX
4ccef05829
ci: Make $cmd failure fail the build without -o pipefail
2017-04-24 21:44:17 +03:00
ZyX
fc16d02c3d
ci: Do not use pipefail
2017-04-24 19:30:28 +03:00
ZyX
3a0117c850
ci: Do not accidentally kill something unneeded
2017-04-24 18:34:47 +03:00
ZyX
26fad863ba
ci: When using restarting tests kill make with the shell
2017-04-24 18:28:46 +03:00