-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
74 lines (72 loc) · 2.41 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
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
notifications:
email: false
# Only build branches via PR to avoid running CI twice.
# https://docs.travis-ci.com/user/conditional-builds-stages-jobs
# https://docs.travis-ci.com/user/conditions-v1
if: branch = master OR tag IS present OR type != push
jobs:
allow_failures:
- julia: nightly
fast_finish: true
include:
- name: "Benchmark (Sequential)"
julia: 1.5
os: linux
before_install:
- unset JULIA_PROJECT
- julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
install:
# Run benchmark outside `script` so that it's hidden by default:
- julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(
env = Dict(
"JULIA_NUM_THREADS" => "1",
"OMP_NUM_THREADS" => "1",
),
);
);
'
script:
- julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'
- julia -e '
using BenchmarkCI;
BenchmarkCI.pushresult(;
title = "Benchmark result (via Travis)",
url = "[email protected]:JuliaFolds/Transducers-data.git",
branch = "travis-benchmark-results",
);
'
after_script: lscpu
if: type != push
- name: "Benchmark (Multi-thread)"
julia: 1.5
os: linux
before_install:
- unset JULIA_PROJECT
- julia -e 'using Pkg; pkg"add PkgBenchmark [email protected]"'
install:
# Run benchmark outside `script` so that it's hidden by default:
- julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(env = Dict("JULIA_NUM_THREADS" => "2"));
script = "benchmark/multi-thread/benchmarks.jl",
project = "benchmark",
);
'
- julia -e '
using BenchmarkCI;
BenchmarkCI.pushresult(;
title = "Multi-thread benchmark result (via Travis)",
url = "[email protected]:JuliaFolds/Transducers-data.git",
branch = "travis-multi-thread-benchmark-results",
);
'
script:
- julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'
after_script: lscpu
if: type != push