-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 1.15 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
sudo: required
language: C
matrix:
include:
- os: osx
- os: linux
dist: trusty
compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- luarocks
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install dmd rust lua51; fi
- sudo luarocks install luacov || sudo luarocks-5.1 install luacov
- echo $CI
script:
- scripts/get.sh __local__
- source ~/.xmake/profile
- xmake lua versioninfo
- xmake f -m coverage -P core
- xmake -v -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
- export XMAKE_PROGRAM_DIR=~/.local/share/xmake
- mv tmp "$XMAKE_PROGRAM_DIR/core/_xmake_main.lua"
- cp core/build/xmake "$XMAKE_PROGRAM_DIR" || sudo cp core/build/xmake "$XMAKE_PROGRAM_DIR"
- xmake lua versioninfo
- xmake lua --backtrace tests/test.lua
after_success:
- luacov
- bash <(curl -s https://codecov.io/bash)