Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to generate build info code (in build.rs) #53

Merged
merged 5 commits into from
Apr 3, 2018

Conversation

TheWaWaR
Copy link
Contributor

@TheWaWaR TheWaWaR commented Apr 1, 2018

What're this PR do?

  • Support get build info (used in build.rs, with an ASCII logo of Cryptape)
  • Remove target/debug/deps cache from travis CI (reduce at least 10 minutes build time)

A Demo Project

https://github.com/TheWaWaR/build-info

Demo

$> program -V
program v0.1-2-gc4a2391-dev


$> program --version
program v0.1-2-gc4a2391-dev
(rustc 1.24.0-nightly-2017-12-04)

                       ..-nnmmmmnn-..
                  .-nndNNNNNNmddddmmmho.
                .smNNMMMNnn-         :nnmhn.
              .dNMMMMMNs--:nosnno-.     ..dNn..   ....
            .hNMMMMMMMNmmNNNMMMMMNmn     ..nMNNmmmmmmmmdnn.
           .mMMMMMMMMMMMMMMMMMMMMMMN:  ..ohmNNNNNNmdhnsoonms
          nNMMMMMMMMMMMMMMMMMMMMMMMMh.                 .-:dN:
         :NMMMMMMMMMMMMMMMMMMMMMMMMMNdnnnhhddmmmNNNNNNNNNNNMn
        .mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNMMMMMMMMMMMMm dMN:
        nNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN sMMMMMMMNNNNNNdNMNn
       .dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNMMMMMNdn.--nohmNMmo.
       nNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmhnn       .:smNmhn.
       .NMMMMMMMMMMMMMMMMMMMMMMMMMMMNmhhdddhsnn.             nmMNmn:
       nMMMMMMMMMMMMMMMMMMMMMMMMMMMMh..              .:n:-.   oNddNNn
       oMMMMMMMMMMMMMMMMMMMMMMMMMMMMh.             .:noshmdnndmn  -hm.
       sMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdsn-... .:.         -onsn:    .Nn
       hMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNmmdmmNn                osssNn
      .mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMs   .nnnmNNmdhnnnnssonNn
      oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNsnsdNMMMMMMNhssnhdo.Ns
     nmMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNnoN.
    .nNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdm
   oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMmn
  :NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNdnNMNn
 .mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNds:" nMMNn
 nMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd:.    nMMMNo.
nNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNdo:...sMMMMNo
nNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNmmNMMMMMm
 NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
  :mNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNms
     mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm
   ._____. ._____.  _. ._   ._____. ._____.   ._.   ._____. ._____.
   | .___| |___. | | | | |  |___. | |_____|   |_|   |___. | |_____|
   | |     ._. | | | |_| |  ._. | |   ._.   ._____. ._. | | ._____.
   | |     | | |_| \_____/  | | |_/   | |   | ,_, | | | |_/ |_____|
   | |___. | | ._.   ._.    | |       | |   | | | | | |     ._____.
   |_____| |_| |_|   |_|    |_|       |_|   |_| |_| |_|     |_____|

@TheWaWaR TheWaWaR force-pushed the generate-build-info-code branch 2 times, most recently from 3dc3e59 to bdd6829 Compare April 1, 2018 16:40
@TheWaWaR TheWaWaR force-pushed the generate-build-info-code branch from bdd6829 to c74ff28 Compare April 2, 2018 01:57
@TheWaWaR
Copy link
Contributor Author

TheWaWaR commented Apr 2, 2018

@zhangsoledad Fixed

@codecov-io
Copy link

codecov-io commented Apr 3, 2018

Codecov Report

Merging #53 into develop will decrease coverage by 0.12%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #53      +/-   ##
==========================================
- Coverage    43.22%   43.1%   -0.13%     
==========================================
  Files          129     130       +1     
  Lines        22037   22101      +64     
==========================================
  Hits          9526    9526              
- Misses       12511   12575      +64
Impacted Files Coverage Δ
util/src/lib.rs 100% <ø> (ø) ⬆️
util/src/build_info.rs 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9b99a0...d34d219. Read the comment docs.

@TheWaWaR TheWaWaR merged commit 7c4c3b3 into develop Apr 3, 2018
@rink1969 rink1969 deleted the generate-build-info-code branch April 11, 2018 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants