annotate build_upload_win_nightly @ 1248:d4ae118cf41d

build_upload_win_nightly needs some steps from build_nightly since it skips invoking that script and instead calls build_release directly
author Michael Pavone <pavone@retrodev.com>
date Mon, 27 Feb 2017 00:02:20 -0800
parents 8e911c57846c
children f249fd91b0f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1241
23a2cf9782a7 Fixes for nightly build upload script
Michael Pavone <pavone@retrodev.com>
parents: 1240
diff changeset
12 . $HOME/remote.params
1240
c63516b6824a Fun untested changes for uploading nightly builds
Michael Pavone <pavone@retrodev.com>
parents:
diff changeset
13 artifact=$(tail -n 1 /tmp/build_${name}_out.log)
1242
73003ad27518 Use public key auth rather than trying to make passowrd auth work in a script
Michael Pavone <pavone@retrodev.com>
parents: 1241
diff changeset
14 scp -i "$REMOTE_IDENT" "$HOME/.local/share/lxc/$CONTAINER_NAME/rootfs/home/$BUILD_USER/blastem/$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies