-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
57 lines (50 loc) · 1.37 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
47
48
49
50
51
52
53
54
55
56
57
language: python
sudo: true
branches:
only:
- master
- develop
env:
global:
- TORCH_SERVER=https://raw.githubusercontent.com/torch/rocks/master/
matrix:
- LUA="LUA52"
- LUA="LUA53"
- LUA="LUAJIT20"
- LUA="LUAJIT21"
before_install:
- if [[ ! -d torch ]]; then git clone https://github.com/torch/distro.git torch --recursive ; fi
- cd torch
- git pull
- git submodule update
- git submodule foreach git pull origin master
- cd ..
- cp -rf torch torch_$LUA
- cd torch_$LUA
- TORCH_LUA_VERSION=$LUA ./install.sh -b
- cd ..
install:
- source ./torch_$LUA/install/bin/torch-activate
- luarocks --from=$TORCH_SERVER install sundown
- luarocks --from=$TORCH_SERVER install dok
- luarocks --from=$TORCH_SERVER install argcheck
- luarocks --from=$TORCH_SERVER install csvigo
- luarocks install luafilesystem
- luarocks install paths
- luarocks install threads
- luarocks install torchnet
- luarocks install busted
- luarocks install luacov
- luarocks install nn
- luarocks make rocks/torch-dataframe-scm-1.rockspec CFLAGS="-O2 -fPIC -fprofile-arcs -ftest-coverage" LIBFLAG="-shared --coverage"
script:
- cd specs
- ./run_all.sh --coverage --version $LUA
- ./coverage.sh --generate
- cd ..
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: change
on_failure: always