go-ethereum/.travis.yml
etienne-napoleone fa9fad23fe
Update .travis.yml
Add missing check for same repo origin when deploying
2018-07-26 18:45:54 +07:00

102 lines
3.1 KiB
YAML

sudo: required
language: go
go_import_path: github.com/ethereum/go-ethereum
services: skip
jobs:
include:
- stage: Lint
os: linux
sudo: false
dist: trusty
go: '1.10'
git:
submodules: false
script:
- go run build/ci.go lint
- stage: Build and test
os: linux
dist: trusty
go: 1.9.x
script:
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install
- while sleep 540; do echo "[ still running ]"; done &
- go run build/ci.go test -coverage
- kill %1
- os: linux
dist: trusty
go: '1.10'
script:
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
- go run build/ci.go install
- while sleep 540; do echo "[ still running ]"; done &
- go run build/ci.go test -coverage
- kill %1
- stage: Github release
script:
- make tomo
- mv build/bin/tomo build/bin/tomo-linux-amd64
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file:
- "build/bin/tomo-linux-amd64"
skip_cleanup: true
on:
branch: master
tags: true
- stage: Build and push tomochain/tomochain image
services:
- docker
before_install:
- docker build -t tomochain/tomochain .
- docker run tomochain/tomochain
install: skip
script: skip
deploy:
provider: script
script:
- bash docker_push.sh latest
- bash docker_push.sh $TRAVIS_BUILD_ID
on:
branch: master
tags: false
deploy:
provider: script
script:
- bash docker_push.sh latest
- bash docker_push.sh $TRAVIS_TAG
on:
branch: master
tags: true
- stage: Trigger rebuild of tomochain/infra-tomochain image
sudo: false
install: skip
script: bash docker_rebuild.sh
stages:
- name: Lint
- name: Build and test
- name: Github release
if: type != pull_request AND branch = master AND tag = true AND repo = tomochain/tomochain
- name: Build and push tomochain/tomochain image
if: type != pull_request AND branch = master AND repo = tomochain/tomochain
- name: Trigger rebuild of tomochain/infra-tomochain image
if: type != pull_request AND branch = master AND repo = tomochain/tomochain
notifications:
slack:
rooms:
secure: DoWVSWEKZre0rsYvHPqOBpYa5hL7DagVCP7eGR+2dluzsyUOTW58uiaezaZMAPPG6k7i1TC9CufONkFRwH6kqLrFtAFd+t3sKb3X4D9/PSa9k88uBuNfsX+JhUzEMT53pfLO9NTBbZs3M6bOuZDP7GddWWnMZpO6Mu7RzZtVxyqbZIcNu3nxsmLkoaQ8726npaHrxhO1Ab+3rgR4dkNFLgl9/CnPwvuv/j24dsKzly6tF+4Ms9Fz5O0Te8zK5d/UWZN50e+uDnbzcIvbY2VHOYXchXZRbfKO8/M2TIXLPKbLc3alCw1ZvpFZqiMYK3SnGNby4FLp8RlC6H4sv52YeNq3fHH8SgOJ3xTL8m6ejIlqoKnUNsJ1lwtfiEVu5D1b8FRKTPqoh+cjadJxsF9dO0xZsf1d5Pmq6Ncr0j6di1ZMjCc6TPFERxkdA48+PzQY4TqfBpM4E5RnJuX9O9MJFbA1fZo2xhHcy0LlkslZMpSwiv/YO4bCJZPmxvHtruqELJXxjYyC67UbzSzrBVE1g1bXy0V5xyxPIEA38jzlNczhq6fg2gyEc+6JCbzN2gFoAS5uFWQHpUhXHc7zNB5Jyi7GPQv6cfHYcedjn9In9/bNDqqGexGX4Ih/cb6W1GOHC7c2A/AsfTa9KWmsyj7YwBRXFIXfme7bBh6VGuRqU3Y=
on_success: change
on_failure: always