Skip to content

Commit

Permalink
Enable Travis CI configuration
Browse files Browse the repository at this point in the history
Add `.travis.yml` with setup to both run test and build steps on Linux
and macOS based systems.

Based on their individual setup steps, Python3 is installed and all
required Python projects.
  • Loading branch information
HeavyWombat committed Sep 8, 2018
1 parent 8764e05 commit bd325ab
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
language: go
go:
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x

os:
- linux
- osx

install:
- if [[ "$(uname)" == "Linux" ]]; then sudo apt-get update && sudo apt-get install -y build-essential python3 python3-pip python3-dev; fi
- if [[ "$(uname)" == "Darwin" ]]; then brew update && brew install jq && ( brew outdated python || brew upgrade python ) && brew cleanup; fi
- pip3 install --user 'ruamel.yaml<=0.15.42'
- pip3 install --user 'cython'
- if [[ "$(uname)" == "Linux" ]]; then export PATH="$PATH:$HOME/.local/bin"; fi
- if [[ "$(uname)" == "Darwin" ]]; then if PYBIN=$(ls -d $HOME/Library/Python/3.?/bin); then export PATH="$PATH:$PYBIN"; fi; fi
- curl --silent --location https://goo.gl/g1CpPX | bash -s v1.0.2

script:
- make test

before_deploy:
- make build

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: jyUnaigmmUwrihErjI4Do9gzWkDYTV3/xISHPkqDjl+egmTkIFG+TokdLAxQGsFb28peiD3mvf321oRk+dcWmDF7eSgs2LS5xjLKHqABi/Gc9RfCm1jIMm5WYatAGOTpYGzDdwNev26o5OM8PkgNx7fyyrvTVu7rtfj3f3u1yEfAFC05nLL23IePRvDqX4VDduDx89peDYbSW1STU80AyMSKpHgCzLWxe0drv/2J9hHXXkxsd2UxcYEGoZmbUsZXCIUl91leO14sMSiX/oN8w5HdpTWCwJvskaQcgsiP8ClmvjNLa7VyQiue9yN18MwMJVa4FThvWVuUDwQP8k2ibch88P41zGToTIqwGLft2ElD2zul+TBKe2LhVOR79wRxsM00uWrJIUIwQb+qCm4aHoLm6lLvrYqP3gppi6XSlFasbk+jXra9vgZAj6ThooMjkcnGWyCa1L+rCdJSmRzziQOujbPF//bQ6fPL38P3gqZZGluGnDEimwyYCTQMuSW+qM3Ug10PLoUfLRE80HDSZG6JxVVY4ea6icHqFOfM59BAiwIIk/enCOQHtEs8+oK36zzzeXggFCtw20fH76SGdHqQ9VG6cZflv5lO5BEix9DotYoI/iuw6J/QWIs1fTx77p1X60HOWuDoBHllUDd+fQaK+9BYjdaNIGrJrqbGZyo=
file_glob: true
file: binaries/*
on:
condition: $TRAVIS_GO_VERSION =~ ^1\.11
tags: true

0 comments on commit bd325ab

Please sign in to comment.