Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihard committed Aug 25, 2017
1 parent ee47a8b commit beb3464
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: go

go:
- 1.7.x

jobs:
include:
- stage: build
install:
- export GOPATH=$TRAVIS_BUILD_DIR
- export PATH=$HOME/gopath/bin:$PATH
- go env
script:
- pwd
- ls -la .
- go build -i "-ldflags=-linkmode internal" -o ./build/bpr github.com/mihard/behat-parallel-runner
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file: build/bpr
on:
tags: true
branch: master
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Behat parallel runner [![Build Status](https://travis-ci.org/mihard/behat-parallel-runner.svg?branch=master)](https://travis-ci.org/mihard/behat-parallel-runner)

### What is it?

It is a simple launcher of behat tests, which allow:
Expand All @@ -13,5 +15,16 @@ It is a simple launcher of behat tests, which allow:
```
$ bpr 2 -s my_suite
```
where `bpr` is the name of executable file, 2 is a number of threads and everything else can be any regular behat arguments
where `bpr` is the name of executable file, 2 is a number of threads and everything else can be any regular behat arguments.

The executable binary you can find on the releases page.

### How to build

- Clone the repository
- Run following command

```
$ cd <clonned project root>
$ GOPATH=<clonned project root> go build -i "-ldflags=-linkmode internal" -o ./build/bpr github.com/mihard/behat-parallel-runner
```
Empty file added build/.gitkeep
Empty file.

0 comments on commit beb3464

Please sign in to comment.