diff --git a/.travis.yml b/.travis.yml index a38cef7..8fb0189 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,11 @@ nix: 2.1 sudo: true matrix: include: + - name: cargo pedantry + script: nix-shell --run checkPhase --arg useNix1 false -A mozilla-rust-overlay - name: checkPhase - Nix 2 script: nix-shell --run checkPhase --arg useNix1 false - name: checkPhase - Nix 2 script: nix-shell --run checkPhase --arg useNix1 false - name: checkPhase - Nix 1 script: nix-shell --run checkPhase --arg useNix1 true - - name: cargo pedantry - script: nix-shell --run checkPhase --arg useNix1 false -A mozilla-rust-overlay diff --git a/shell.nix b/shell.nix index 4f6b496..37ed31b 100644 --- a/shell.nix +++ b/shell.nix @@ -49,6 +49,8 @@ let checkPhase() ( cd "${builtins.toString ./.}/ofborg" + set -x + cargo fmt git diff --exit-code cargofmtexit=$?