forked from prometheus/node_exporter
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
35 lines (34 loc) · 905 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
os:
- linux
- osx
go:
- "1.10.3"
env:
global:
- PATH=$HOME/.local/bin:$PATH
- BUILD_TYPE=package
go_import_path: github.com/algorand/node_exporter
language: go
sudo: required
matrix:
include:
- name: "OSX integration test"
os: osx
env: BUILD_TYPE=test
- name: "Linux integration test"
os: linux
env: BUILD_TYPE=test
script:
- make $BUILD_TYPE
after_success:
- mkdir -p ./artifacts
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then cp *.tar.gz ./artifacts ; fi
addons:
artifacts:
s3_region: "us-east-1"
target_paths:
# default is /${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}
# but that wouldn't let us specify the same download address over and over, as the build number and job number advances.
- /${TRAVIS_REPO_SLUG}/latest
- /${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}
debug: true