mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
travis sdist: git clone repo a second time, to properly set umask
see https://stackoverflow.com/questions/32580821/
This commit is contained in:
parent
c5c8ea15bb
commit
612259f70f
1 changed files with 9 additions and 0 deletions
|
@ -105,9 +105,18 @@ jobs:
|
|||
python: false
|
||||
services:
|
||||
- docker
|
||||
before_install:
|
||||
# hack: travis already cloned the repo, but we re-clone now, as we need to have umask set BEFORE cloning
|
||||
- umask 0022
|
||||
- mkdir fresh_clone && cd fresh_clone
|
||||
- git clone https://github.com/$TRAVIS_REPO_SLUG.git && cd electrum
|
||||
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then git fetch origin pull/$TRAVIS_PULL_REQUEST/merge; fi
|
||||
- git checkout $TRAVIS_COMMIT
|
||||
- echo "Second git clone ready at $PWD"
|
||||
install:
|
||||
- sudo docker build --no-cache -t electrum-sdist-builder-img ./contrib/build-linux/sdist/
|
||||
script:
|
||||
- echo "Building sdist at $PWD"
|
||||
- sudo docker run --name electrum-sdist-builder-cont -v $PWD:/opt/electrum --rm --workdir /opt/electrum/contrib/build-linux/sdist electrum-sdist-builder-img ./build.sh
|
||||
after_success: true
|
||||
- stage: release check
|
||||
|
|
Loading…
Add table
Reference in a new issue