Commit 98a8d40d authored by zauberstuhl's avatar zauberstuhl

On user builds run only project related tests

parent cbd72cc3
......@@ -6,11 +6,9 @@ language: go
services:
- postgresql
- docker
install:
- |
sudo curl -o /usr/local/bin/jq -L \
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
git clone --depth 1 https://github.com/sstephenson/bats.git
cd bats && sudo ./install.sh /usr/local
script:
- cd $TRAVIS_BUILD_DIR && bats --tap .
matrix:
include:
- env: PROJECT=diaspora
- env: PROJECT=ganggo
install: bash scripts/install.sh
script: bats --tap $(find . -name $PROJECT'*.bats')
#!/bin/bash
repo=$GOPATH/src/github.com/ganggo/ganggo
if [ ! -z ${PRSHA} ]; then
if [ "$PROJECT" == "ganggo" ]; then
if [ "$(basename $PRREPO)" == "ganggo.git" ]; then
cd $repo && git stash \
&& git remote add custom $PRREPO \
......
#!/bin/bash
# install jq command line json parser
sudo curl -o /usr/local/bin/jq -L \
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
# install bats unit testing in bash
git clone --depth 1 https://github.com/sstephenson/bats.git
cd bats && sudo ./install.sh /usr/local && cd -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment