Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely remove build-time git dependency
Previous build system required the git build tools to be installed to operate properly. Worse: the test suite required git to be *built* to operate at all. We now completely remove that dependency by doing our own "build" or rather, by removing the need to do a build at all. We simply assume /usr/bin/perl exists, and that we'll use the GITPERLLIB environment to specify the path to our Git library during testing. do not depend on an externally built git and assume it is available
- Loading branch information
Showing
6 changed files
with
17 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,13 @@ | |||
language: perl | language: perl | ||
|
|
||
env: | |||
- GIT_ROOT_DIR="$TRAVIS_BUILD_DIR/git" | |||
|
|||
before_install: | before_install: | ||
- sudo apt-get update -q | - sudo apt-get update -q | ||
- sudo apt-get install -y lighttpd php5 php5-cgi php5-cli php5-curl php5-sqlite git libmediawiki-api-perl liblwp-protocol-https-perl libdatetime-format-iso8601-perl | - sudo apt-get install -y lighttpd php5 php5-cgi php5-cli php5-curl php5-sqlite git libmediawiki-api-perl liblwp-protocol-https-perl libdatetime-format-iso8601-perl | ||
|
|
||
install: | install: | ||
- (cd t && ./install-wiki.sh install) | - (cd t && ./install-wiki.sh install) | ||
- git clone --depth=1 https://github.com/git/git "$TRAVIS_BUILD_DIR/git" | |||
- ln -s /usr/bin/git "$TRAVIS_BUILD_DIR/git/git" | |||
|
|
||
script: | script: | ||
- make test GIT_ROOT_DIR=$GIT_ROOT_DIR | - env GITPERLLIB="$TRAVIS_BUILD_DIR" make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters