forked from mendersoftware/mender-artifact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.17 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
language: go
# Golang version matrix
go:
- 1.9.4
- tip
install:
# Get tools used in Makefile
- make get-tools
- sudo apt-get install mtools
before_script:
# Print build info.
- echo $TRAVIS_COMMIT
- echo $TRAVIS_TAG
- echo $TRAVIS_BRANCH
- echo $TRAVIS_BUILD_NUMBER
- echo $TRAVIS_REPO_SLUG
# Rename the branch we're on, so that it's not in the way for the
# subsequent fetch. It's ok if this fails, it just means we're not on any
# branch.
- git branch -m temp-branch || true
# Git trick: Fetch directly into our local branches instead of remote
# branches.
- git fetch origin 'refs/heads/*:refs/heads/*'
# Get last remaining tags, if any.
- git fetch --tags origin
- make extracheck
script:
- make coverage
- make
after_success:
# Integrate with https://codecov.io
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $AWS_BUCKET
region: $AWS_REGION
upload-dir: $TRAVIS_BRANCH/$TRAVIS_GO_VERSION
file: mender-artifact
skip_cleanup: true
acl: $AWS_S3_ACL