forked from aergoio/aergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 2.01 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
language: go
os:
- linux
- osx
go:
- 1.10.x
before_install:
- go get -t github.com/Masterminds/glide
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go get -t github.com/codeclimate/test-reporter; fi
- cmake .
install:
- make all polaris colaris
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then test-reporter before-build; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make cover-check; fi
after_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
before_deploy:
- AERGO_VERSION="${TRAVIS_TAG:1}"
- mkdir -p release
- mkdir -p aergo/${AERGO_VERSION}/bin
- mkdir -p aergo/${AERGO_VERSION}/lib
- mv bin/{aergocli,aergoluac,aergosvr,brick} aergo/${AERGO_VERSION}/bin
- cp libtool/lib/libgmp* aergo/${AERGO_VERSION}/lib
- tar -zcvf release/aergo-${AERGO_VERSION}.${TRAVIS_OS_NAME}.tar.gz aergo/${AERGO_VERSION}
- mkdir -p polaris/${AERGO_VERSION}/bin
- mkdir -p polaris/${AERGO_VERSION}/lib
- mv bin/{polaris,colaris} polaris/${AERGO_VERSION}/bin
- cp libtool/lib/libgmp* polaris/${AERGO_VERSION}/lib
- tar -zcvf release/polaris-${AERGO_VERSION}.${TRAVIS_OS_NAME}.tar.gz polaris/${AERGO_VERSION}
deploy:
provider: releases
api_key:
secure: uGFdnqc23aUqoZD9bZqQsGl4KiHAH6WkUrH9mrdgzsb5sXaChhX0J9klJcDEbYOKG19HUeoBHSorwSKl6Bsg+eOqf8E+blNQLNq7CoPcceGkpXBrfmGe3zgXKjrEGDbsEBuR7oA4GcJAYKw+tJEXZ7z4jy6kuJFxn5j3MZqvz0XIKM6/dUiF/0N1sfLrDWWpdBrW2yJt9yHaeqXhhA/IiHVrlj79KYxTU0UFwdBW6CjxLpOoQWaFwW3X94l5/UpKrDXFpwjjCOhceBpm8dHBxbYujDtop/n/R0VdhtVXtdyx/I877e/d5z3fDL6xTuAMnDYbJdqhVVbBoAukbOpYzhksJ7+1dFFEcku6pFfYPMnxjhxNs9AN5b/qAdxauUe167a/XVUOyOUFoZlptZsGO5i9HXCAnLOgyyTMpeeo3ELIJvSQAK5J9l/wz1g0cJboRsu1rM0LmNqynzScJja2MWaH1vXKlFA56Lr0ZtY/N3T7pg+BPucFp4Fp8hedoEIqRZbqWDAlfX4aY8u6BWTS5929ThrXT9Y5PRZplLAW9QdlmHewWZpevCSm5HA60SF7Qz9tUAVTyKzx/GLvLBNyI82M9JggHwK0gVe/fU0NtKewZnwNaJ4uM5LZvJxq6h0+/N6BLBZsLmBbUC3BgodMSdxb9y0rG8ipAWi9dZhEYd0=
file_glob: true
file: release/*
skip_cleanup: true
draft: true
on:
tags: true