Skip to content

Commit

Permalink
update trigger wheel build for new wheel building
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Oct 9, 2020
1 parent 035ac2f commit 2d647e2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions misc/trigger_wheel_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@

# $WHEELS_PUSH_TOKEN is stored in travis and is an API token for the
# mypy-build-bot account.
git clone --recurse-submodules https://${WHEELS_PUSH_TOKEN}@github.com/mypyc/mypy_mypyc-wheels.git build

git config --global user.email "nobody"
git config --global user.name "mypy wheels autopush"

COMMIT=$(git rev-parse HEAD)
cd build/mypy
git fetch
git checkout $COMMIT
git submodule update
pip install -r test-requirements.txt
pip install -r mypy-requirements.txt
V=$(python3 -m mypy --version)
V=$(echo "$V" | cut -d" " -f2)
cd ..

git clone https://${WHEELS_PUSH_TOKEN}@github.com/mypyc/mypy_mypyc-wheels.git build
cd build
echo $COMMIT > mypy_commit
git commit -am "Build wheels for mypy $V"
git tag v$V
# Push a tag, but no need to push the change to master
Expand Down

0 comments on commit 2d647e2

Please sign in to comment.