forked from bitcoin-core/secp256k1
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3200859
commit 277e9cf
Showing
6 changed files
with
79 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
function replace_versions { | ||
# echo $1 #project name | ||
# echo $2 #build number | ||
if [ ! -f versions.txt ]; then | ||
echo "$1: $2" >> versions.txt | ||
else | ||
while read p; do | ||
if [[ $p == *"$1:"* ]]; then | ||
echo "$1: $2" >> versions.txt.t | ||
else | ||
echo $p >> versions.txt.t | ||
fi | ||
done <versions.txt | ||
mv versions.txt{.t,} | ||
fi | ||
} | ||
|
||
set -e | ||
set -x | ||
|
||
git config --global user.email "ci@bitprim.org" | ||
git config --global user.name "Bitprim CI" | ||
|
||
mkdir temp | ||
cd temp | ||
|
||
# git clone https://github.com/bitprim/bitprim-node-exe.git --depth 1 | ||
git clone https://github.com/bitprim/bitprim-node-exe.git | ||
|
||
cd bitprim-node-exe | ||
echo "Travis branch: ${TRAVIS_BRANCH}" | ||
git checkout ${TRAVIS_BRANCH} | ||
|
||
replace_versions secp256k1 $BITPRIM_BUILD_NUMBER | ||
|
||
cat versions.txt | ||
git add . versions.txt | ||
git commit --message "Travis secp256k1 build: $BITPRIM_BUILD_NUMBER, $TRAVIS_BUILD_NUMBER" | ||
git remote add origin-commit https://${GH_TOKEN}@github.com/bitprim/bitprim-node-exe.git > /dev/null 2>&1 | ||
git push --quiet --set-upstream origin-commit ${TRAVIS_BRANCH} |
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