mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 13:13:17 +00:00
Added a job to dry-run the publish_toolstate.py once
This commit is contained in:
parent
a1bad57fa5
commit
854abd319e
@ -248,6 +248,15 @@ before_script:
|
|||||||
# Enable core dump on Linux.
|
# Enable core dump on Linux.
|
||||||
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern';
|
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern';
|
||||||
fi
|
fi
|
||||||
|
- >
|
||||||
|
if [ "$IMAGE" = mingw-check ]; then
|
||||||
|
# verify the publish_toolstate script works.
|
||||||
|
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git;
|
||||||
|
cd rust-toolstate;
|
||||||
|
python2.7 "$TRAVIS_BUILD_DIR/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" "";
|
||||||
|
cd ..;
|
||||||
|
rm -rf rust-toolstate;
|
||||||
|
fi
|
||||||
|
|
||||||
# Log time information from this machine and an external machine for insight into possible
|
# Log time information from this machine and an external machine for insight into possible
|
||||||
# clock drift. Timezones don't matter since relative deltas give all the necessary info.
|
# clock drift. Timezones don't matter since relative deltas give all the necessary info.
|
||||||
|
@ -120,6 +120,11 @@ if __name__ == '__main__':
|
|||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
print(message)
|
print(message)
|
||||||
|
|
||||||
|
if not github_token:
|
||||||
|
print('Dry run only, not committing anything')
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
with open(save_message_to_path, 'w') as f:
|
with open(save_message_to_path, 'w') as f:
|
||||||
f.write(message)
|
f.write(message)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user