forked from buildpacks/pack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (37 loc) · 880 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
sudo: required
language: go
go:
- 1.12.x
services:
- docker
jobs:
include:
- name: tests
os: linux
cache:
directories:
- $GOPATH/pkg/mod
install:
|
go mod download
export PACK_PATH="$PWD/artifacts/pack-${TRAVIS_TAG:-$TRAVIS_BUILD_NUMBER}-${TRAVIS_OS_NAME}"
if [[ $TRAVIS_OS_NAME = linux ]]; then export CGO_ENABLED=0; fi
go build -ldflags "-X 'main.Version=$TRAVIS_TAG (git sha: $(git log -1 --pretty=%H))'" -o "$PACK_PATH" ./cmd/pack
"$PACK_PATH" version
script:
- go test -count=1 -parallel=1 -v ./...
- go test -count=1 -parallel=1 -v -tags=acceptance ./acceptance
- name: tests
os: windows
env:
- NO_DOCKER=true
after_success:
|
go build -o pack ./cmd/pack
- name: tests
os: osx
env:
- NO_DOCKER=true
after_success:
|
go build -o pack ./cmd/pack