-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
75 lines (63 loc) · 2.38 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
# Don't use any predefined language environment
# (see https://github.com/travis-ci/travis-ci/issues/4895#issuecomment-150703192)
language: generic
sudo: required
services:
- docker
cache:
directories:
- $HOME/.cache/mnist/
# Disable automatic submodule fetching to prevent
# it from being done recursively
git:
submodules: false
# Do a shallow submodule fetch
before_install: git submodule update --init
env:
global:
# Make sure beaver is in the PATH
- PATH="$(git config -f .gitmodules submodule.beaver.path)/bin:$PATH)"
- BEAVER_DOCKER_VARS="MXNET_ENGINE_TYPE"
- DIST=xenial
# Basic config is inherited from the global scope
jobs:
templates:
- &test-matrix
stage: Test
# Don't build tags already converted to D2
if: NOT tag =~ \+d2$
install:
- beaver dlang install
- beaver run script/download-mnist
script: beaver dlang make
include:
# Test matrix
- <<: *test-matrix
env: DMD=dmd F=production MXNET_ENGINE_TYPE=NaiveEngine
- <<: *test-matrix
env: DMD=dmd F=production MXNET_ENGINE_TYPE=ThreadedEngine
- <<: *test-matrix
env: DMD=dmd F=production MXNET_ENGINE_TYPE=ThreadedEnginePerDevice
- <<: *test-matrix
env: DMD=dmd F=devel MXNET_ENGINE_TYPE=NaiveEngine
- <<: *test-matrix
env: DMD=dmd F=devel MXNET_ENGINE_TYPE=ThreadedEngine
- <<: *test-matrix
env: DMD=dmd F=devel MXNET_ENGINE_TYPE=ThreadedEnginePerDevice
- <<: *test-matrix
env: DMD=dmd-transitional F=production MXNET_ENGINE_TYPE=NaiveEngine
- <<: *test-matrix
env: DMD=dmd-transitional F=production MXNET_ENGINE_TYPE=ThreadedEngine
- <<: *test-matrix
env: DMD=dmd-transitional F=production MXNET_ENGINE_TYPE=ThreadedEnginePerDevice
- <<: *test-matrix
env: DMD=dmd-transitional F=devel MXNET_ENGINE_TYPE=NaiveEngine
- <<: *test-matrix
env: DMD=dmd-transitional F=devel MXNET_ENGINE_TYPE=ThreadedEngine
- <<: *test-matrix
env: DMD=dmd-transitional F=devel MXNET_ENGINE_TYPE=ThreadedEnginePerDevice
# Additional stages
- stage: Closure allocation check
env: DMD=dmd-transitional F=devel
install: beaver dlang install
script: ci/closures.sh