-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (33 loc) · 954 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: node_js
node_js:
- "node" # always use the latest; we are only using it as a test runner for now
cache: npm
env:
global:
- GOVERSION=1.13.8
- GOPATH=
- GOROOT=
- PATH=~/go-${GOVERSION}/bin:~/go/bin:$PATH
before_install:
- (cd ~ && curl -fsSLO https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz)
- mkdir ~/go-${GOVERSION} && tar xf ~/go${GOVERSION}.linux-amd64.tar.gz -C ~/go-${GOVERSION} --strip-components 1
services:
- docker
jobs:
include:
- stage: Tests
name: lint
script: npm run lint
- name: unit tests
script: make test
# Run make dist and build-image _without_ pushing results, if no tag
- name: dist
script: make dist build-image
if: tag IS blank
# Run make dist and push stuff
- stage: Deploy
script:
# build and publish
- make dist build-image
- ./bin/run-release.sh $TRAVIS_TAG
if: tag IS present