Skip to content

Commit 5fe0600

Browse files
authored
Merge pull request #853 from rust-ndarray/gh-actions
Switch from travis-ci.org to github actions for CI
2 parents 224358e + 8df954a commit 5fe0600

File tree

4 files changed

+53
-37
lines changed

4 files changed

+53
-37
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
6+
7+
name: Continuous integration
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
HOST: x86_64-unknown-linux-gnu
12+
FEATURES: "test docs"
13+
14+
jobs:
15+
tests:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- stable
21+
- beta
22+
- nightly
23+
- 1.42.0 # MSRV
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: ${{ matrix.rust }}
31+
override: true
32+
- name: Install openblas
33+
run: sudo apt-get install libopenblas-dev gfortran
34+
- run: ./scripts/all-tests.sh "$FEATURES" ${{ matrix.rust }}
35+
36+
clippy:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
rust:
41+
- beta
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
override: true
49+
components: clippy
50+
- run: cargo clippy
51+

.travis.yml

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

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ __ https://docs.rs/ndarray/
1111

1212
|build_status|_ |crates|_
1313

14-
.. |build_status| image:: https://api.travis-ci.org/rust-ndarray/ndarray.svg?branch=master
15-
.. _build_status: https://travis-ci.org/rust-ndarray/ndarray
14+
.. |build_status| image:: https://github.com/rust-ndarray/ndarray/workflows/Continuous%20integration/badge.svg?branch=master
15+
.. _build_status: https://github.com/rust-ndarray/ndarray/actions
1616

1717
.. |crates| image:: http://meritbadge.herokuapp.com/ndarray
1818
.. _crates: https://crates.io/crates/ndarray

scripts/all-tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ cargo test --manifest-path=ndarray-rand/Cargo.toml --features quickcheck --verbo
1717
cargo test --manifest-path=serialization-tests/Cargo.toml --verbose
1818
cargo test --manifest-path=blas-tests/Cargo.toml --verbose
1919
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose
20-
([ "$CHANNEL" != "beta" ] || (rustup component add clippy && cargo clippy))
2120
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")

0 commit comments

Comments
 (0)