-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from stelligent/develop
v1.0.0
- Loading branch information
Showing
95 changed files
with
4,771 additions
and
939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
machine: true | ||
|
||
## Don't build when new release tags are pushed | ||
branches: | ||
ignore: | ||
- /^v[0-9]/ | ||
|
||
steps: | ||
- run: | ||
name: Install Glide | ||
command: | | ||
sudo add-apt-repository ppa:masterminds/glide -y | ||
sudo apt-get update | ||
sudo apt-get install glide -y | ||
- checkout | ||
|
||
- run: | ||
name: Setup Source | ||
command: | | ||
IMPORT_PATH=/home/circleci/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME | ||
APP_PATH=$IMPORT_PATH/$CIRCLE_PROJECT_REPONAME | ||
mkdir -p $IMPORT_PATH | ||
ln -sf "$(pwd)" $APP_PATH | ||
echo "export APP_PATH=$APP_PATH" >> $BASH_ENV | ||
- run: | ||
name: Dependencies | ||
command: cd $APP_PATH && make deps | ||
|
||
- run: | ||
name: Compile | ||
command: cd $APP_PATH && make build | ||
|
||
- run: | ||
name: Test | ||
command: cd $APP_PATH && make test | ||
|
||
- store_test_results: | ||
path: test-results | ||
|
||
- store_artifacts: | ||
path: artifacts | ||
|
||
- add_ssh_keys: | ||
fingerprints: | ||
- "53:1f:d0:6f:24:2a:bf:cb:92:0f:bc:1e:14:6e:1d:72" | ||
|
||
## In order for deploy to work, you need an environment variable set in CircleCI named "GITHUB_TOKEN" that contains | ||
## a token created from https://github.com/settings/tokens | ||
## | ||
## Also, an read/write SSH key needs to be created and private key added to circle ci | ||
## as per https://circleci.com/docs/adding-read-write-deployment-key/ | ||
## | ||
## Suggest creating a machine user for the token and ssh key to limit access | ||
## | ||
- deploy: | ||
name: Deploy | ||
command: | | ||
cd $APP_PATH | ||
if [ "${CIRCLE_BRANCH}" == "develop" ]; then | ||
make dev-release | ||
elif [ "${CIRCLE_BRANCH}" == "master" ]; then | ||
make release | ||
fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
.release/ | ||
vendor/ | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.5 | ||
1.0.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.