aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-06-09 20:30:10 +0200
committerRobert Helgesson <robert@rycee.net>2020-06-09 20:48:22 +0200
commit5a97bf30d498e84de87bc247b6fa4f4115b68c6d (patch)
tree95215fe8070a5045c71eac371827ddf142a6124e
parentb33802ca7f0675fa8f64dd0f322ab7a57e45ba6a (diff)
ci: switch from Travis CI to GitHub Actions
Unfortunately Travis CI seems stuck on Nix 2.0 on macOS, which no longer works with Nixpkgs unstable.
-rw-r--r--.github/workflows/test.yml17
-rw-r--r--.travis.yml9
2 files changed, 17 insertions, 9 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 00000000000..56696b4fec6
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,17 @@
+name: "Test"
+on:
+ pull_request:
+ push:
+jobs:
+ tests:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: cachix/install-nix-action@v10
+ with:
+ nix_path: nixpkgs=channel:nixos-unstable
+ - run: nix-shell . -A install
+ - run: nix-shell --pure --max-jobs 4 tests -A run.all
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index c2599e9240d..00000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: nix
-
-os:
- - linux
- - osx
-
-script:
- - nix-shell . -A install
- - nix-shell --pure --max-jobs 10 tests -A run.all