forked from neovim/lua-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dist: xenial
language: c
env:
global:
- DEPS_INSTALL_PREFIX="${TRAVIS_BUILD_DIR}/.deps"
- NVIM_INSTALL_PREFIX="${DEPS_INSTALL_PREFIX}/nvim"
- NVIM_PROG="${NVIM_INSTALL_PREFIX}/bin/nvim"
# Travis has 1.5 virtual cores.
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
- MAKE_CMD="make -j2"
- DEPS_PREFIX=${DEPS_INSTALL_PREFIX}
- DEPS_INCLUDE_FLAGS="-I${DEPS_INSTALL_PREFIX}/include -I${DEPS_INSTALL_PREFIX}/include/luajit-2.0"
- LUA=${DEPS_INSTALL_PREFIX}/bin/luajit
# Cache marker for dependencies cache: indicates that the cache exists
# and has pre-built dependencies.
- CACHE_MARKER="$HOME/.cache/nvim-deps/.travis_cache_marker"
# Test success marker: indicates that all tests were successful.
# Required because we only want to update the cache if the tests were
# successful, but don't have this information available in before_cache
# (which is run before after_success).
- SUCCESS_MARKER="$TRAVIS_BUILD_DIR/.tests_successful"
script: .ci/script.sh
before_cache: .ci/before_cache.sh
cache:
apt: true
directories:
- "$HOME/.cache/pip"
- "$HOME/.cache/nvim-deps"
addons:
apt:
packages:
- gdb