diff --git a/servo/.travis.yml b/servo/.travis.yml index 2a2e6fc9257f..2572ae3ddfdb 100644 --- a/servo/.travis.yml +++ b/servo/.travis.yml @@ -8,7 +8,9 @@ matrix: cache: false - sudo: 9000 dist: trusty - script: ./mach build -d --verbose + script: + - ./mach build -d --verbose + - bash etc/ci/lockfile_changed.sh cache: directories: - .cargo diff --git a/servo/etc/ci/lockfile_changed.sh b/servo/etc/ci/lockfile_changed.sh new file mode 100755 index 000000000000..7aa1ccccfcaa --- /dev/null +++ b/servo/etc/ci/lockfile_changed.sh @@ -0,0 +1,4 @@ +#!/bin/bash +diff=$(git diff -- */*/Cargo.lock) +echo "$diff" +[[ ! $diff ]]