Mercurial > repos > blastem
annotate build_upload_win_nightly @ 1671:05c34078e1ac
Include controller images in archives produced by build_release
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 02 Jan 2019 09:27:00 -0800 |
parents | f249fd91b0f5 |
children | 0d942ecf38c5 |
rev | line source |
---|---|
1240
c63516b6824a
Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 #!/bin/sh |
c63516b6824a
Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 name=$1 |
1246
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
3 |
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
4 cd $HOME/blastem_win |
1248
d4ae118cf41d
build_upload_win_nightly needs some steps from build_nightly since it skips invoking that script and instead calls build_release directly
Michael Pavone <pavone@retrodev.com>
parents:
1246
diff
changeset
|
5 hg revert -a |
1246
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
6 hg pull |
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
7 hg up |
1248
d4ae118cf41d
build_upload_win_nightly needs some steps from build_nightly since it skips invoking that script and instead calls build_release directly
Michael Pavone <pavone@retrodev.com>
parents:
1246
diff
changeset
|
8 rev=`hg summary | sed -E -n 's/^parent: [^:]+:([^ ]+) .*$/\1/p'` |
d4ae118cf41d
build_upload_win_nightly needs some steps from build_nightly since it skips invoking that script and instead calls build_release directly
Michael Pavone <pavone@retrodev.com>
parents:
1246
diff
changeset
|
9 sed -i -E "s/(define BLASTEM_VERSION \"[^-]+)-pre\"/\1-pre-$rev\"/" blastem.c |
1246
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
10 export OS=Windows |
8e911c57846c
Windows nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1243
diff
changeset
|
11 ./build_release > /tmp/build_${name}_out.log |
1251
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
12 result=$? |
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
13 if [ $result -ne 0 ]; then |
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
14 echo Build falied with return code $result |
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
15 exit $result |
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
16 fi |
1241
23a2cf9782a7
Fixes for nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents:
1240
diff
changeset
|
17 . $HOME/remote.params |
1240
c63516b6824a
Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
18 artifact=$(tail -n 1 /tmp/build_${name}_out.log) |
1251
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
19 echo "Uploaing $artifact to $REMOTE_HOST" |
f249fd91b0f5
More logging. Fix path in upload step of build_upload_win_nightly
Michael Pavone <pavone@retrodev.com>
parents:
1248
diff
changeset
|
20 scp -i "$REMOTE_IDENT" "$HOME/blastem_win/$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies |