-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
27 lines (27 loc) · 921 Bytes
/
.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
language: julia
sudo: required
dist: trusty
os:
- linux
julia:
- 1.4
addons:
apt:
packages:
- expect-dev # for unbuffer
matrix:
include:
- name: "Unit Tests"
env: TEST_SUITE=unit
- name: "Benchmarks"
env: TEST_SUITE=benchmark
notifications:
email: false
script:
- unbuffer git fetch --unshallow
- unbuffer julia --project=test --color=yes -e 'using Pkg; Pkg.build()'
- if [ $TEST_SUITE = 'unit' ]; then unbuffer julia --project=test --color=yes --code-coverage --check-bounds=yes test/runtests.jl; fi
- if [ $TEST_SUITE = 'benchmark' ]; then unbuffer julia -O3 --project=test --color=yes test/benchmark/run_benchmark.jl -- benchmark.json 1.0; fi
after_success:
- if [ $TEST_SUITE = 'unit' ]; then unbuffer julia -e 'using Pkg; Pkg.add("Coverage"); include("test/submit_test_coverage.jl")'; fi
- if [ $TEST_SUITE = 'benchmark' ]; then unbuffer ./scripts/submit_benchmark.sh; fi