Skip to content

Commit f4493bd

Browse files
feat: add .travis.yml file as per #50
1 parent a01c0d0 commit f4493bd

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
if: tag IS blank
2+
3+
language: go
4+
5+
go:
6+
- "1.12"
7+
branches:
8+
only:
9+
- feat/es7
10+
11+
install: true
12+
13+
env:
14+
- GO111MODULE=on
15+
16+
jobs:
17+
include:
18+
- name: linux
19+
os: linux
20+
dist: xenial
21+
sudo: required
22+
23+
before_install:
24+
- git clone https://$GITHUB_TOKEN@github.com/appbaseio-confidential/arc-noss
25+
26+
script:
27+
- cd arc-noss
28+
- go mod download
29+
- make clean && make
30+
31+
before_deploy:
32+
- mkdir -p pkg/mod/github.com/appbaseio/
33+
- sudo mv $GOPATH/pkg/mod/github.com/appbaseio/* pkg/mod/github.com/appbaseio/
34+
- zip -r arc-linux.zip build pkg sample
35+
- export TRAVIS_TAG="preview"
36+
37+
deploy:
38+
provider: releases
39+
api_key: $PAT
40+
skip_cleanup: true
41+
file: arc-linux.zip
42+
draft: true
43+
on:
44+
all_branches: true

0 commit comments

Comments
 (0)