Update Travis file

This commit is contained in:
Alexey Melnichuk 2017-01-13 10:21:34 +03:00
parent 48d7993bba
commit 201623342f
2 changed files with 13 additions and 6 deletions

View File

@ -2,9 +2,14 @@ language: c
sudo: false sudo: false
env:
global:
- LCURL_CC_FLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs"
- LCURL_LD_FLAGS="-shared --coverage"
matrix: matrix:
include: include:
- compiler: ": Lua51osx" - compiler: ": Lua51-osx"
env: LUA="lua 5.1" env: LUA="lua 5.1"
os: osx os: osx
- compiler: ": Lua51" - compiler: ": Lua51"
@ -36,19 +41,20 @@ before_install:
- export CC=gcc - export CC=gcc
- gcc --version - gcc --version
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:~/Library/Python/2.7/bin/; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:~/Library/Python/2.7/bin/; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LCURL_LD_FLAGS="-bundle -undefined dynamic_lookup -all_load --coverage"; fi
- pip install --user cpp-coveralls - pip install --user cpp-coveralls
- pip install --user hererocks - pip install --user hererocks
- hererocks here -r^ --$LUA - hererocks here -r^ --$LUA
- source here/bin/activate - source here/bin/activate
install: install:
- luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" - luarocks make rockspecs/lua-curl-scm-0.rockspec CFLAGS="$LCURL_CC_FLAGS" LIBFLAG="$LCURL_LD_FLAGS"
before_script: before_script:
- luarocks show luacov-coveralls || luarocks install luacov-coveralls - luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
- luarocks show lunitx || luarocks install lunitx - luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
- luarocks show luafilesystem || luarocks install luafilesystem - luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
- luarocks show dkjson || luarocks install dkjson --deps-mode=none - luarocks show dkjson > /dev/null 2>&1 || luarocks install dkjson --deps-mode=none
script: script:
- cd test - cd test

View File

@ -21,6 +21,7 @@ platform:
cache: cache:
- c:\hererocks -> appveyor.yml - c:\hererocks -> appveyor.yml
- c:\external -> appveyor.yml
install: install:
- set PATH=C:\Python27\Scripts;%LR_EXTERNAL%;%PATH% - set PATH=C:\Python27\Scripts;%LR_EXTERNAL%;%PATH%