-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
92 lines (88 loc) · 3.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
dist: trusty
language: python
python:
- 2.7
env:
global:
- DYNET_PATH=$PWD/dynet EIGEN_PATH=$PWD/eigen DYFLAGS="--dynet-mem 2048" TIMEOUT=200 LONGTIMEOUT=300
matrix:
- TEST=dynet TASK=rnnlm-batch MBSIZE=64
- TEST=dynet TASK=rnnlm-batch MBSIZE=16
- TEST=dynet TASK=rnnlm-batch MBSIZE=04
- TEST=dynet TASK=rnnlm-batch MBSIZE=01
- TEST=dynet TASK=sparse-rnnlm-batch MBSIZE=16
- TEST=dynet TASK=sparse-rnnlm-batch MBSIZE=01
- TEST=dynet TASK=bilstm-tagger
- TEST=dynet TASK=bilstm-tagger-withchar
- TEST=dynet TASK=treenn
- TEST=chainer TASK=rnnlm-batch MBSIZE=64
- TEST=chainer TASK=rnnlm-batch MBSIZE=16
- TEST=chainer TASK=rnnlm-batch MBSIZE=04
- TEST=chainer TASK=rnnlm-batch MBSIZE=01
- TEST=chainer TASK=bilstm-tagger
- TEST=chainer TASK=bilstm-tagger-withchar
- TEST=chainer TASK=treenn
- TEST=theano TASK=rnnlm-batch MBSIZE=64
- TEST=theano TASK=rnnlm-batch MBSIZE=16
- TEST=theano TASK=rnnlm-batch MBSIZE=04
- TEST=theano TASK=rnnlm-batch MBSIZE=01
- TEST=theano TASK=bilstm-tagger
- TEST=theano TASK=bilstm-tagger-withchar
cache:
directories:
- dynet
- eigen
stages:
- compile
- test
jobs:
include:
- stage: compile
env:
language: cpp
python:
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-4.8
- libboost-regex1.55-dev
install: skip
script:
- hg clone https://bitbucket.org/eigen/eigen -r 699b659 || (cd eigen && hg pull && hg update -r 699b659)
- git clone https://github.com/clab/dynet || (cd dynet; git pull)
- mkdir -p dynet/build
- cd dynet/build
- cmake .. -DEIGEN3_INCLUDE_DIR=$TRAVIS_BUILD_DIR/eigen
- make -j$(nproc)
- stage: test
- language: cpp
python:
env: TEST=dynet TASK=rnnlm-batch
install: cd $TRAVIS_BUILD_DIR/dynet-cpp && make -j$(nproc) DYNET_PATH=$DYNET_PATH EIGEN_PATH=$EIGEN_PATH $TASK && cd $TRAVIS_BUILD_DIR
- language: cpp
python:
env: TEST=dynet TASK=sparse-rnnlm-batch
install: cd $TRAVIS_BUILD_DIR/dynet-cpp && make -j$(nproc) DYNET_PATH=$DYNET_PATH EIGEN_PATH=$EIGEN_PATH $TASK && cd $TRAVIS_BUILD_DIR
- language: cpp
python:
env: TEST=dynet TASK=bilstm-tagger
install: cd $TRAVIS_BUILD_DIR/dynet-cpp && make -j$(nproc) DYNET_PATH=$DYNET_PATH EIGEN_PATH=$EIGEN_PATH $TASK && cd $TRAVIS_BUILD_DIR
- language: cpp
python:
env: TEST=dynet TASK=bilstm-tagger-withchar
install: cd $TRAVIS_BUILD_DIR/dynet-cpp && make -j$(nproc) DYNET_PATH=$DYNET_PATH EIGEN_PATH=$EIGEN_PATH $TASK && cd $TRAVIS_BUILD_DIR
- language: cpp
python:
env: TEST=dynet TASK=treenn
install: cd $TRAVIS_BUILD_DIR/dynet-cpp && make -j$(nproc) DYNET_PATH=$DYNET_PATH EIGEN_PATH=$EIGEN_PATH $TASK && cd $TRAVIS_BUILD_DIR
install:
- pip install -q cython numpy
- pip install -U $TEST
script:
- ./run-tests.sh
- grep '\(per_sec\|startup\)' log/*/*.log
after_failure:
- cat $TRAVIS_BUILD_DIR/log/*/*.log