Skip to content

Commit

Permalink
circleci.sh: Added license info and usage instructions
Browse files Browse the repository at this point in the history
Fixes: #2
  • Loading branch information
anoop committed Jul 28, 2018
1 parent f3daba9 commit e03a713
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions circleci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
#!/bin/bash
# Copyright 2018 Anoop Vijayan Maniankara
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Test your changes locally before commiting
#
# Instructions:
# - Install circleci cli
# $ curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci && chmod +x /usr/local/bin/circleci
# - Run circleci.sh
# $ ./circleci.sh

# Validate
circleci config validate -c .circleci/config.yml || exit -1

# Run
circleci build
function main {
# Validate
circleci config validate -c .circleci/config.yml || exit -1

# Execute
circleci build
}

main $*

0 comments on commit e03a713

Please sign in to comment.