Deploy screenshots
This commit is contained in:
parent
dea1a3f8dc
commit
9ea39f06d5
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/deploy-screenshots/
|
|
@ -54,3 +54,10 @@ install:
|
||||||
script:
|
script:
|
||||||
- (cd example-os && make)
|
- (cd example-os && make)
|
||||||
- ./utils/gui-wrapper.sh ./test/${MODE}.sh
|
- ./utils/gui-wrapper.sh ./test/${MODE}.sh
|
||||||
|
- |
|
||||||
|
./utils/auto-push.sh "https://github.com/jsmaniac/travis-os.git" \
|
||||||
|
"git@github.com:jsmaniac/travis-os-deploy-artifacts.git" \
|
||||||
|
"master" \
|
||||||
|
"deploy-base" \
|
||||||
|
"edf345aad47e" \
|
||||||
|
"deploy-screenshots"
|
||||||
|
|
|
@ -1,24 +1,28 @@
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: os.sh
|
all: os.sh deploy-screenshots
|
||||||
|
|
||||||
|
../deploy-screenshots:
|
||||||
|
mkdir $@
|
||||||
|
|
||||||
os.sh: os.asm Makefile
|
os.sh: os.asm Makefile
|
||||||
nasm -o $@ $<
|
nasm -o $@ $<
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: test-qemu-system-i386 test-qemu-system-arm test-virtualbox test-bochs
|
test: test-qemu-system-i386 test-qemu-system-arm test-virtualbox test-bochs Makefile
|
||||||
|
|
||||||
.PHONY: test-qemu-system-i386
|
.PHONY: test-qemu-system-i386
|
||||||
test-qemu-system-i386:
|
test-qemu-system-i386: os.sh ../deploy-screenshots Makefile
|
||||||
(cd .. && xvfb-run -a ./test/qemu-system-i386.sh)
|
(cd .. && xvfb-run -a ./test/qemu-system-i386.sh)
|
||||||
|
|
||||||
.PHONY: test-qemu-system-arm
|
.PHONY: test-qemu-system-arm
|
||||||
test-qemu-system-arm:
|
test-qemu-system-arm: os.sh ../deploy-screenshots Makefile
|
||||||
(cd .. && xvfb-run -a ./test/qemu-system-arm.sh)
|
(cd .. && xvfb-run -a ./test/qemu-system-arm.sh)
|
||||||
|
|
||||||
.PHONY: test-virtualbox
|
.PHONY: test-virtualbox
|
||||||
test-virtualbox:
|
test-virtualbox: os.sh ../deploy-screenshots Makefile
|
||||||
(cd .. && xvfb-run -a ./test/virtualbox.sh)
|
(cd .. && xvfb-run -a ./test/virtualbox.sh)
|
||||||
|
|
||||||
.PHONY: test-bochs
|
.PHONY: test-bochs
|
||||||
|
test-bochs: os.sh ../deploy-screenshots Makefile
|
||||||
(cd .. && xvfb-run -a ./test/bochs.sh)
|
(cd .. && xvfb-run -a ./test/bochs.sh)
|
||||||
|
|
|
@ -17,7 +17,7 @@ bochs -qf "$bochsrc" < "$bochscontinue" &
|
||||||
pid=$!
|
pid=$!
|
||||||
runsikulix -r test/check-gradient.sikuli
|
runsikulix -r test/check-gradient.sikuli
|
||||||
|
|
||||||
./utils/take-screenshots.sh "$(basename "$0" .sh).png"
|
./utils/take-screenshots.sh "./deploy-screenshots/$(basename "$0" .sh).png"
|
||||||
|
|
||||||
kill $pid
|
kill $pid
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,6 @@ qemu-system-i386 -drive format=raw,file=${os_file},index=0,if=floppy &
|
||||||
pid=$!
|
pid=$!
|
||||||
runsikulix -r test/check-gradient.sikuli
|
runsikulix -r test/check-gradient.sikuli
|
||||||
|
|
||||||
./utils/take-screenshots.sh "$(basename "$0" .sh).png"
|
./utils/take-screenshots.sh "./deploy-screenshots/$(basename "$0" .sh).png"
|
||||||
|
|
||||||
kill $pid
|
kill $pid
|
|
@ -18,7 +18,7 @@ VBoxManage startvm "$vmname" --type sdl &
|
||||||
pid=$!
|
pid=$!
|
||||||
runsikulix -r test/check-gradient.sikuli
|
runsikulix -r test/check-gradient.sikuli
|
||||||
|
|
||||||
./utils/take-screenshots.sh "$(basename "$0" .sh).png"
|
./utils/take-screenshots.sh "./deploy-screenshots/$(basename "$0" .sh).png"
|
||||||
|
|
||||||
VBoxManage controlvm "$vmname" poweroff
|
VBoxManage controlvm "$vmname" poweroff
|
||||||
wait $pid
|
wait $pid
|
||||||
|
|
|
@ -2,6 +2,24 @@
|
||||||
set -e
|
set -e
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "Usage: $0 official_repo deploy_repo deploy_branch deploy_base_commit key_iv_id deploy_directory"
|
||||||
|
echo "official_repo: https://github.com/user/repo.git"
|
||||||
|
echo "deploy_repo: git@github.com:user/repo.git"
|
||||||
|
echo "deploy_branch: gh-pages"
|
||||||
|
echo "deploy_base_commit: branch name or tag"
|
||||||
|
echo "key_iv_id: 123456789abc, part of encrypted_123456789abc_key and encrypted_123456789abc_iv"
|
||||||
|
echo "deploy_directory: directory to copy on top of deploy_base_commit"
|
||||||
|
}
|
||||||
|
|
||||||
|
if test "$#" -eq 1 && test "$1" = "-h" -o "$1" = "--help"; then
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
elif test "$#" -ne 5; then
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
official_repo="$1" # https://github.com/user/repo.git
|
official_repo="$1" # https://github.com/user/repo.git
|
||||||
deploy_repo="$2" # git@github.com:user/repo.git
|
deploy_repo="$2" # git@github.com:user/repo.git
|
||||||
deploy_branch="$3" # gh-pages
|
deploy_branch="$3" # gh-pages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user