-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
57 lines (48 loc) · 1.25 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
os:
- linux
dist: xenial
language: d
d:
- ldc
- dmd
env:
- ARCH="x86_64"
addons:
apt:
packages:
- libzmq3-dev
- libopenblas-dev
- libhdf5-dev
cache: apt
script:
- dub test --arch "$ARCH" --build=unittest-cov
- dub build --build=release --config=example-mnist
- dub build --build=release --config=example-mnist-cnn
- dub build --build=release --config=example-cifar
- dub build --build=release --config=example-char-rnn
- dub build --build=release --config=example-ptb
# ldc2 causes linker error with drepl https://github.com/dlang-community/drepl/issues/39
- if [ "$DC" = dmd ]; then
dub build --build=release --config=repl;
dub build --build=release --config=jupyterd;
else
echo "skipping make repl jupyterd in ${DC}";
fi
- cat dub.selections.json
after_success:
- if [ "$DC" = dmd ]; then
make doc;
mv generated-docs docs;
bash <(curl -s https://codecov.io/bash) -s "source-grain-*.lst";
else
echo "skipping coverage and doc stage in ${DC}";
fi
# deploy:
# d: dmd
# provider: pages
# skip_cleanup: true
# github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
# local_dir: docs
# on:
# branch: master
# condition: $DC = dmd