Skip to content

Commit d0ef82e

Browse files
authored
Merge pull request #112 from termoshtt/toolchain
Circle CI
2 parents 182349b + 58a61d1 commit d0ef82e

File tree

6 files changed

+57
-77
lines changed

6 files changed

+57
-77
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
version: 2.0
2+
3+
references:
4+
rust_cfg: &rust_cfg
5+
docker:
6+
- image: rust:1.26.2
7+
8+
jobs:
9+
test-openblas:
10+
<<: *rust_cfg
11+
steps:
12+
- checkout
13+
- run:
14+
name: test OpenBLAS backend
15+
command: |
16+
apt update && apt install -y gfortran
17+
cargo test --no-default-features --features=openblas
18+
19+
test-netlib:
20+
<<: *rust_cfg
21+
steps:
22+
- checkout
23+
- run:
24+
name: test NetLib backend
25+
command: |
26+
apt update && apt install -y cmake gfortran
27+
cargo test --no-default-features --features=netlib
28+
29+
test-intel-mkl:
30+
<<: *rust_cfg
31+
steps:
32+
- checkout
33+
- run:
34+
name: test Intel MKL backend
35+
command: cargo test --no-default-features --features=intel-mkl
36+
37+
format:
38+
<<: *rust_cfg
39+
steps:
40+
- checkout
41+
- run:
42+
name: check format
43+
command: |
44+
rustup component add rustfmt-preview
45+
cargo fmt -- --write-mode=diff
46+
47+
workflows:
48+
version: 2
49+
tests:
50+
jobs:
51+
- test-openblas
52+
- test-netlib
53+
- test-intel-mkl
54+
- format

rust-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stable

rustfmt.toml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,8 @@ max_width = 120
22
hard_tabs = false
33
tab_spaces = 4
44
newline_style = "Unix"
5-
indent_style = "Block"
6-
use_small_heuristics = true
7-
format_strings = false
85
wrap_comments = false
9-
comment_width = 100
106
normalize_comments = false
11-
empty_item_single_line = true
12-
struct_lit_single_line = true
13-
fn_single_line = false
14-
where_single_line = false
15-
imports_indent = "Visual"
16-
imports_layout = "Mixed"
17-
reorder_extern_crates = true
18-
reorder_extern_crates_in_group = true
19-
reorder_imports = true
20-
reorder_imports_in_group = true
21-
reorder_imported_names = true
22-
reorder_modules = true
23-
binop_separator = "Front"
24-
type_punctuation_density = "Wide"
25-
space_before_colon = false
26-
space_after_colon = true
27-
spaces_around_ranges = false
28-
spaces_within_parens_and_brackets = false
29-
combine_control_expr = true
30-
struct_field_align_threshold = 0
31-
remove_blank_lines_at_start_or_end_of_block = true
32-
match_arm_blocks = true
33-
force_multiline_blocks = false
34-
fn_args_density = "Tall"
35-
brace_style = "SameLineWhere"
36-
control_brace_style = "AlwaysSameLine"
37-
trailing_comma = "Vertical"
38-
trailing_semicolon = true
39-
match_block_trailing_comma = false
40-
blank_lines_upper_bound = 1
41-
blank_lines_lower_bound = 0
427
merge_derives = true
43-
use_try_shorthand = false
44-
condense_wildcard_suffixes = false
458
force_explicit_abi = true
46-
use_field_init_shorthand = false
47-
write_mode = "Overwrite"
48-
color = "Auto"
499
unstable_features = false
50-
disable_all_formatting = false
51-
skip_children = false
52-
hide_parse_errors = false
53-
error_on_line_overflow = true
54-
error_on_unformatted = false
55-
report_todo = "Never"
56-
report_fixme = "Never"
57-
ignore = []

src/eigh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
33
use ndarray::*;
44

5-
use super::UPLO;
65
use super::diagonal::*;
76
use super::error::*;
87
use super::layout::*;
98
use super::operator::*;
109
use super::types::*;
10+
use super::UPLO;
1111

1212
/// Eigenvalue decomposition of Hermite matrix reference
1313
pub trait Eigh {

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use ndarray::LinalgScalar;
44
use num_complex::Complex;
55
use num_traits::*;
6-
use rand::Rng;
76
use rand::distributions::*;
7+
use rand::Rng;
88
use std::fmt::Debug;
99
use std::iter::Sum;
1010
use std::ops::Neg;

wercker.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)