Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
use travis to build and deploy releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ericp1337 committed May 5, 2017
1 parent 5b78569 commit b7b947e
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 7 deletions.
82 changes: 82 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,84 @@
# Created by https://www.gitignore.io/api/linux,jetbrains

### JetBrains ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### JetBrains Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
.idea/sonarlint

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# End of https://www.gitignore.io/api/linux,jetbrains

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
Expand All @@ -6,6 +87,7 @@
# Folders
_obj
_test
build

# Architecture specific extensions/prefixes
*.[568vq]
Expand Down
22 changes: 15 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
language: go

go:
- 1.5
- 1.6
- 1.7
- 1.8

- 1.5
- 1.6
- 1.7
- 1.8
notifications:
email: false
email: false
before_deploy: "scripts/build.sh"
deploy:
provider: releases
api_key:
secure: SfwWQV3WZQAdu97TLOz3eXlEHvumH8sr/AmwPdvVG1JYVJ9pKoQjzOpj+2tFaWel7yuzkVN+fFwtlxJfvr+sTuocuDGhTdDsD6v8wncjPy46nOICYVrRDKN12UQajX9tTDso/0mg+AxBWHktu8JKKKFC09CIQE062kQLrC99Usq9fEtQN/w0sRa/yU5py9umvlaesYO2Sp3f6Bi2x1H5oYww5A+aa4Q4ReHb7wEDF2jo2B3jAU0C6gx+jzPR/B5JYMdncwwrC79kpe70OXZ513oL317aMmzYmnQiq9hnbUKeyrFnc1kKBkhlm8qSHXAwVVdt7f7ZZDxEm61arh2v5e0ruNHvZUHXxL+F63iMgTswD+fN/WzoCfodSk/f0NXQUvstrQGJc3TRDn9U21+mXfmeSyc+OoOZuK5TY4MdAoTEAlorVvb6nK8f1VLIwhtwFKt8mAOU9y2gFUrYO/UVwchvsmeCmw9T5RZmJiW86l3upRnSGj2ssCUBIeznbBeFEgTG0tdC16fBSgsU6e2ZntfAhS/Z/07FHFZ8C84wzLoz6S4mbSqW1omURiY+cTX7M5Ww8oCYdOQ3rLm91NSFR7iMj3QRGe+p0xtPmMLHVkwfg1kVyz/1Nj+Uc9ggL/RjleUQRuC12dl6BLL8HqraS0ksPgkzgNzg5C78fYkhP5o=
file_glob: true
file: build/*
skip_cleanup: true
on:
tags: true
21 changes: 21 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

PLATFORMS=(
dragonfly-amd64
freebsd-amd64 freebsd-386
linux-amd64 linux-386 linux-arm linux-arm64 linux-ppc64 linux-ppc64le linux-mips linux-mipsle
netbsd-amd64 netbsd-386
openbsd-amd64 openbsd-386
)

mkdir -p build
echo Building
for plat in "${PLATFORMS[@]}"; do
echo Building "$plat"

export GOOS="${plat%-*}"
export GOARCH="${plat#*-}"
go build -o "build/timer_script-${plat}" main.go
echo

done

0 comments on commit b7b947e

Please sign in to comment.