Skip to content

Commit

Permalink
build-sys: hardcode ninja version to v1.8.2
Browse files Browse the repository at this point in the history
Finding latest version fails too often following way.

    http://: Invalid host name.
    The command "wget "$NINJA_LATEST"" failed and exited with 1 during .

That ninja version was created at 2017-09-11 so it is not changing all the
time.  I guess it's fine to hardcode this, and review if the version is
still the latest before iputils release.

Reference: https://travis-ci.org/iputils/iputils/jobs/447360838
Signed-off-by: Sami Kerola <[email protected]>
  • Loading branch information
kerolasa committed Oct 28, 2018
1 parent 8f715b0 commit 89f1cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ matrix:
- env: CC=gcc
- env: CC=clang
install:
- export NINJA_LATEST=$(curl --silent https://api.github.com/repos/ninja-build/ninja/releases/latest | awk --field-separator='"' '/browser_download_url.*ninja-linux.zip/ {print $4}')
- export NINJA_LATEST="https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip"
- wget "$NINJA_LATEST"
- unzip -q ninja-linux.zip -d build
- export PATH="$PWD/build:$PATH"
Expand Down

0 comments on commit 89f1cdc

Please sign in to comment.