Skip to content

Commit

Permalink
[CI] Add .travis.yml and functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Jan 6, 2018
1 parent 93ed0b2 commit 5703c1a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: go

os:
- linux

go:
- 1.9

script:
bash functional-tests.sh
10 changes: 10 additions & 0 deletions functional-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

test -e ssshtest || wget -q https://raw.githubusercontent.com/ryanlayer/ssshtest/master/ssshtest

. ssshtest
set -uo pipefail

go build -o main_test main.go

./main_test optimize

0 comments on commit 5703c1a

Please sign in to comment.