summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferristseng@fastmail.fm>2021-02-14 00:22:24 -0500
committerFerris Tseng <ferristseng@fastmail.fm>2021-02-14 00:22:24 -0500
commit7fa24f1179b72f97f1df7a16b026e74ab59ef953 (patch)
treefa14b67ffcb9ad42e580aef7a48da2b25a271d99
parent66f37b4e8e105fa9ccdc97bbf9084ef07d9dc880 (diff)
transition to github actions
-rw-r--r--.github/workflows/rust.yml30
-rw-r--r--.travis.yml12
2 files changed, 30 insertions, 12 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 0000000..1cba5e0
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,30 @@
+name: Rust
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build (Default)
+ run: cargo build --verbose
+ - name: Run tests (Default)
+ run: cargo test --verbose
+ - name: Build (Actix)
+ run: cd ipfs-api; cargo build --verbose --features with-actix --no-default-features
+ - name: Run tests (Actix)
+ run: cd ipfs-api; cargo test --verbose --features with-actix --no-default-features
+ - name: Build (Hyper with rustls)
+ run: cd ipfs-api; cargo build --verbose --features with-hyper-rustls --no-default-features
+ - name: Run tests (Hyper with rustls)
+ run: cd ipfs-api; cargo test --verbose --features with-hyper-rustls --no-default-features
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 58cdf96..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: rust
-rust:
- - stable
- - beta
- - nightly
-script:
- - cargo build --verbose
- - cargo test --verbose
- - cd ipfs-api; cargo build --verbose --features with-actix --no-default-features
- - cd ipfs-api; cargo test --verbose --features with-actix --no-default-features
- - cd ipfs-api; cargo build --verbose --features with-hyper-rustls --no-default-features
- - cd ipfs-api; cargo test --verbose --features with-hyper-rustls --no-default-features