ci/ci-pharo-test.sh
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Nov 2015 19:37:14 +0100
changeset 553 d83cb4945d5e
parent 550 777f3813febc
permissions -rwxr-xr-x
Oops, forgot to export PETITCOMPILER_DATA_DIRECTORY variable ...so Smalltalk code could not read it. Also fixed test for "include" scripts so they are not downloaded again when already downloaded.

#!/bin/bash
# 
# a CI job to run PetitCompiler tests on Pharo
#
set -e

if [ ! -f "ci-pharo-common.sh" ]; then
    wget -O "ci-pharo-common.sh" https://bitbucket.org/janvrany/stx-goodies-petitparser/raw/tip/ci/ci-pharo-common.sh
fi
. ci-pharo-common.sh

ci_download_test_data

ci_pharo_download_pharo
ci_pharo_download_petitparser

rm -rf Petit*Test.xml
# Must turn off errexit option, Pharo return non-zero
# status when one or more tests fail. 
set +e
./pharo $IMAGE test --junit-xml-output  \
    PetitTests                          \
    PetitAnalyzer                       \
    PetitSmalltalk                      \
    PetitJava                           \
    PetitIslands                        \
    PetitCompiler-Tests                 \
    PetitCompiler-Extras-Tests		
set -e