-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (59 loc) · 2.06 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
52
53
54
55
56
57
58
59
60
matrix:
include:
# DOCKER && LINUX
- os: linux
language: go
go: 1.7.x
dist: trusty
sudo: required
services:
- docker
env:
global:
- GIT_COMMIT=$TRAVIS_COMMIT
- GIT_BRANCH=$TRAVIS_BRANCH
- TARGET_OS=linux
# MACOS
- os: linux
sudo: false
language: go
go: 1.7.5
env:
global:
- TARGET_OS=darwin
before_install:
- sudo apt-get install -y swig
- 'if [ "$TARGET_OS" = "linux" ]; then
docker login -u="$DOCKERHUB_USERNAME" -p="$DOCKERHUB_PASSWORD";
fi'
install:
- make get
- echo $DOCKERHUB_USERNAME
script:
- make test_all
- make build_artifact
- 'if [ "$TARGET_OS" = "linux" ]; then
make build_docker;
fi'
after_script:
- bash <(curl -s https://codecov.io/bash) -t fb333ecd-d800-4de0-a001-4f4990e20eca
deploy:
- provider: releases
api_key:
secure: UX6lS6ApVSzuC3TU/KTImouwetB+JWNRrUi9rkDRdaT+d32LKVs+V1rkIDav2JfXIBuAR7I0tedG7NUoHYzJy9Zv9NztD/MyrA+oFrFoKU9jhhX3mhR3XY5bQOYSf/I8QKWqcXz42D+lfJtNIwqlG1V/xVjYqkgoXPJbE2QxKiKhl4sc2+8cyDTx/T01jHG5Zj4VKc8f8B6vc+gIN2xdvyxDCWqrerr2Sx8h+hSmC0ME84cWAI32x6ft3SRDvzlGd53Bn4/i0/7X+o2CohWN38GqGOzcO3BPrO8uNdwCOfS1DsOVJCQOoG2T1tguaMnIbek9RdieGOTNvNNb1vbPOrFiADVxbqjuGyhtmRbOtHNNwovKd35hGCaJeYCvORXgffnECF+D9W/mVnWlqiVWSaxBYxInLTyiHcwxLvDLyi4LPvjXgULb7+z/0aY51xzmYNpTF1vyANIOcYdGy/Pb1R+z0sJYm+ypTwasRXXnKh6mOHxeJTIPDkVosmH9Tzci7XzGtSifHHufaV0p4ORvqlAOmD190DwqNEnfV1kJDFKDADwEPySGSllbKGZ/j8PZHyw1FOXf73GwSur3qA6G2VZ3uatmLoPG7StfPVKZ6DDQPYneVh9eMO8lrPJHewrzH2f+PF5N/63t6jyCDP2woX/pPfbcZbRESSVQOxG1zaU=
file_glob: true
file: artf/*
skip_cleanup: true
on:
tags: true
# Deploy tag docker image
- provider: script
script: make docker_dockerhub_publish
on:
tags: true
condition: "$TARGET_OS = linux"
# Deploy latest docker image
- provider: script
script: make docker_dockerhub_publish
on:
condition: "$TARGET_OS = linux"