forked from xmake-io/xmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.07 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
37
38
39
40
41
42
43
44
45
46
sudo: false
language: C
matrix:
include:
- os: osx
- os: linux
dist: trusty
compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
env:
global:
- LUAROCKS=2.2.2
- LUA=lua5.1
before_install:
- rm install
- source scripts/.travis/setenv_lua.sh
- luarocks install luacov
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install dmd rust; fi
script:
- scripts/get.sh __local__
- xmake lua versioninfo
- xmake f -m coverage -P core
- xmake -P core
- export XMAKE_PROGRAM_DIR=$PWD/xmake
- core/build/xmake lua versioninfo
- echo "require('luacov.runner').init({['statsfile']='$PWD/luacov.stats.out',['reportfile']='$PWD/luacov.report.out'})" > tmp
- cat xmake/core/_xmake_main.lua >> tmp
- mv tmp xmake/core/_xmake_main.lua
- cp core/build/xmake $(which xmake) || sudo cp core/build/xmake $(which xmake)
- xmake lua versioninfo
- xmake lua --backtrace tests/test.lua
after_success:
- luacov
- bash <(curl -s https://codecov.io/bash)