Commit ebdcf0c2 authored by Benoit Daloze's avatar Benoit Daloze
Browse files

Only do script/mirror update on TravisCI

* Testing is done on GitHub Actions which is much faster.
parent 964e83a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
sudo: false
install: git clone --depth 1 https://github.com/sstephenson/bats.git
script: PATH="./bats/bin:$PATH" script/test
script: PATH="./bats/bin:$PATH" script/travis
language: c
notifications:
  email:
+1 −7
Original line number Diff line number Diff line
@@ -5,13 +5,7 @@ set -x
STATUS=0
bats ${CI:+--tap} test || STATUS="$?"

if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
  COMMIT_RANGE="$TRAVIS_COMMIT_RANGE"
fi

if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
  ./script/mirror update "$COMMIT_RANGE"
elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] || [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
  ./script/mirror verify "$COMMIT_RANGE"
fi

script/travis

0 → 100755
+7 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -e
set -x

if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
  ./script/mirror update "$TRAVIS_COMMIT_RANGE"
fi