Travis: split build and test into separate scripts.
[jackhill/mal.git] / .travis_test.sh
CommitLineData
7755014c
JM
1#!/bin/bash
2
3set -ex
4
5case ${TRAVIS_OS_NAME} in
6linux)
7 impl=$(echo "${IMPL}" | tr '[:upper:]' '[:lower:]')
8
9 docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${impl} make TEST_OPTS="--soft --log-file ../test.out" test^${IMPL}
10 #docker run -it -u $(id -u) -v `pwd`:/mal kanaka/mal-test-${IMPL,,} make perf^${IMPL}
11 ;;
12osx)
13 make TEST_OPTS="--soft --log-file ../test.out" test^${IMPL}
14 #make TEST_OPTS="--soft --log-file ../perf" perf^${IMPL}
15 ;;
16esac
17cat test.out
18#cat perf.out