This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (58 loc) · 2.84 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: rust
rust: stable
cache: cargo
before_install:
- |
if [ "$(git log -1 $TRAVIS_COMMIT --pretty="%aN")" = "Travis CI" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then
echo "Commit from Travis CI."
exit 0
fi
install:
- cargo install ripgrep || true
before_script:
- git clone https://github.com/rust-lang/rust.git
- git clone https://github.com/rust-lang/rfcs.git
script:
- travis_wait 45 ./ci/script.sh
- cp rust/compiler_feature_raw.txt rust/stable_library_feature*.txt rust/unstable_library_feature*.txt .
- cp rfcs/rfc.txt .
- |
{ echo -e "Status\tFeature Name\tVersion\tIssue #\tEdition\tLatest Commit Timestamp"; cat compiler_feature_raw.txt; } \
| column -t -s $'\t' -n > compiler_feature.txt
- |
{ echo -e "Feature Name\tSince\tFirst Commit Timestamp\tLatest Commit Timestamp"; paste stable_library_feature_first_commit.txt stable_library_feature_latest_commit_time.txt | sort -V -k2,2 -k3,3 -k4,4; } \
| column -t -s $'\t' -n > stable_library_feature.txt
- cat stable_library_feature_latest_commit.txt | cut -f3 > stable_library_feature_latest_commit_time.txt
- |
{ echo -e "Feature Name\tSince\tFirst Commit Timestamp\tLatest Commit Timestamp"; paste stable_library_feature_first_commit.txt stable_library_feature_latest_commit_time.txt | sort -V -k2,2 -k3,3 -k4,4; } \
| column -t -s $'\t' -n > stable_library_feature.txt
- cat unstable_library_feature_latest_commit.txt | cut -f3 > unstable_library_feature_latest_commit_time.txt
- |
{ echo -e "Feature Name\tIssue #\tFirst Commit Timestamp\tLatest Commit Timestamp"; paste unstable_library_feature_first_commit.txt unstable_library_feature_latest_commit_time.txt | sort -k3,3 -k4,4; } \
| column -t -s $'\t' -n > unstable_library_feature.txt
- |
{ echo -e "RFC\tFeature Name"; cat rfc.txt | sort -k1,1; } | column -t -s $'\t' -n > rfc_feature_name.txt
after_success:
- |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
if git diff --quiet; then
echo "No changes to the output on this push; exiting."
exit 0
fi
git checkout -b master
git config --global user.email "[email protected]"
git config --global user.name "Travis CI"
git add compiler_feature.txt
git commit -m "Update compiler feature list by Travis CI build $TRAVIS_BUILD_NUMBER"
git add stable_library_feature.txt
git commit -m "Update stable library feature list by Travis CI build $TRAVIS_BUILD_NUMBER"
git add unstable_library_feature.txt
git commit -m "Update unstable library feature list by Travis CI build $TRAVIS_BUILD_NUMBER"
git add rfc_feature_name.txt
git commit -m "Update RFC feature list by Travis CI build $TRAVIS_BUILD_NUMBER"
git remote add origin-with-token https://${GH_TOKEN}@github.com/mssun/state-of-rust.git > /dev/null 2>&1
git push --quiet --set-upstream origin-with-token HEAD:master
fi
notifications:
email:
on_success: never