forked from xmake-io/xmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (35 loc) · 1.27 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
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; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo luarocks install luacov || sudo luarocks-5.1 install luacov; fi
- 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
- export XMAKE_PROGRAM_DIR=~/.local/share/xmake
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cat xmake/core/_xmake_main.lua >> tmp; mv tmp "$XMAKE_PROGRAM_DIR/core/_xmake_main.lua"; fi
- 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:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then luacov; bash <(curl -s https://codecov.io/bash); fi