forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #631 from htm-community/ci_artefacts
CI fetch artifacts
- Loading branch information
Showing
4 changed files
with
77 additions
and
23 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
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,41 @@ | ||
#!/bin/bash | ||
|
||
# script to fetch artifacts from Win,OSX CI to Travis, | ||
# where all 3 files are deployed to GitHub for release. | ||
|
||
WINDOWS_ARTIFACT_URL="https://ci.appveyor.com/api/buildjobs/by4cpqmul79tp9ag/artifacts/build/scripts/htm_core-6866bd13ece35608313709e82c29b2260ee7be73-windows64.zip" #FIXME make the URLs automated, needs API? | ||
OSX_ARTIFACT_URL="https://3238-118031881-gh.circle-artifacts.com/0/tmp/uploads/htm_core-7b7b53c798b3795088ce772e96c6994068fc1302-darwin64.tar.gz" | ||
|
||
echo "Fetching Windows artifacts:" | ||
retry=false | ||
for i in `seq 10`; do | ||
echo "Downloading artifacts. Try $i" | ||
wget "$WINDOWS_ARTIFACT_URL" || retry=true | ||
if [[ x"$retry" == "xtrue" ]]; then | ||
echo "sleep for 5min is good" | ||
sleep 300 # wait 5min to retry. Other CI needs to finish its build | ||
retry=false | ||
else | ||
echo "happy" | ||
ls *.zip | ||
ls *.gz | ||
break | ||
fi | ||
done | ||
|
||
echo "Fetching OSX artifacts:" | ||
retry=false | ||
for i in `seq 10`; do | ||
echo "Downloading artifacts. Try $i" | ||
wget "$OSX_ARTIFACT_URL" || retry=true | ||
if [[ x"$retry" == "xtrue" ]]; then | ||
echo "sleep for 5min is good" | ||
sleep 300 # wait 5min to retry. Other CI needs to finish its build | ||
retry=false | ||
else | ||
echo "happy" | ||
ls *.zip | ||
ls *.gz | ||
break | ||
fi | ||
done |