23 # github.com/revel/revel/cache
28 # TRAVIS_OS_NAME - linux and osx
29 - echo $TRAVIS_OS_NAME
32 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
33 brew update && brew install memcached redis && brew services start redis && brew services start memcached
36 if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
37 redis-server --daemonize yes
46 # Setting environments variables
47 - export PATH=$PATH:$HOME/gopath/bin
48 - export REVEL_BRANCH="develop"
49 - 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export REVEL_BRANCH="master"; fi'
50 - 'echo "Travis branch: $TRAVIS_BRANCH, Revel dependency branch: $REVEL_BRANCH"'
51 - git clone -b $REVEL_BRANCH git://github.com/revel/modules ../modules/
52 - git clone -b $REVEL_BRANCH git://github.com/revel/cmd ../cmd/
53 - git clone -b $REVEL_BRANCH git://github.com/revel/config ../config/
54 - git clone -b $REVEL_BRANCH git://github.com/revel/cron ../cron/
55 - git clone -b $REVEL_BRANCH git://github.com/revel/examples ../examples/
56 - go get -t -v github.com/revel/revel/...
57 - go get -t -v github.com/revel/cmd/revel
60 - go test -v github.com/revel/revel/...