Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit d1d0cb4

Browse files
ammarioNathan Potter
authored and
Nathan Potter
committed
Add CI
1 parent 10194d4 commit d1d0cb4

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: go
2+
dist: xenial
3+
4+
go:
5+
- 1.12
6+
7+
go_import_path: go.coder.com/sail
8+
9+
install: true
10+
env:
11+
- GO111MODULE=on
12+
script:
13+
- ci/build.sh
14+
- go test ./...
15+
16+
deploy:
17+
provider: releases
18+
api_key: "GITHUB OAUTH TOKEN"
19+
file: "bin/sail-linux-amd64"
20+
skip_cleanup: true
21+
draft: true

ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ build(){
1818
}
1919

2020
GOOS=darwin build
21-
GOOS=linux build
21+
GOOS=linux build

ubuntu-dev/buildpush.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
docker build --network=host -t "$1" .
5+
docker push "$1"

workflow/sail_open.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e
33

4-
sail open $(sail ls | cut -f1 -d" " | tail -n +2 | fzf --height 5)
4+
sail open "$(sail ls | cut -f1 -d\" \" | tail -n +2 | fzf --height 5)"

0 commit comments

Comments
 (0)