-
-
Notifications
You must be signed in to change notification settings - Fork 29
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 #19 from zchee/circleci
CircleCI and Dockernize & Upgrade Intellij IDEA 15 EAP to build 142.4245.2
- Loading branch information
Showing
25 changed files
with
63 additions
and
52 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 @@ | ||
* |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
APP=`git log --oneline -1 --grep="\[" | awk '{print$2}' | sed 's/^\[\(.\+\)\/\(.\+\)\]/\1/g'` | ||
VERSION=`git log --oneline -1 --grep="\[" | awk '{print$2}' | sed 's/^\[\(.\+\)\/\(.\+\)\]/\2/g'` | ||
|
||
echo $APP | ||
echo $VERSION | ||
|
||
docker build -t $APP -f Dockerfile.$APP . | ||
docker run $APP:latest > theme/$APP/$APP.jar | ||
|
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,20 +1,18 @@ | ||
machine: | ||
services: | ||
- docker | ||
|
||
dependencies: | ||
override: | ||
- go get github.com/github/hub | ||
- go get github.com/github/git-lfs | ||
- docker info | ||
- docker build -t intellij-idea -f Dockerfile.idea . | ||
|
||
test: | ||
override: | ||
- docker run intellij-idea:latest > idea.jar | ||
- ls ./idea.jar | ||
|
||
# deployment: | ||
# hub: | ||
# branch: master | ||
# commands: | ||
# - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS | ||
# - docker push circleci/elasticsearch | ||
- ./build.sh | ||
|
||
deployment: | ||
production: | ||
branch: circleci | ||
commands: | ||
- ./deploy.sh |
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,15 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
echo "Parse git log..." | ||
APP=`git log --oneline -1 --grep="\[" | awk '{print$2}' | sed 's/^\[\(.\+\)\/\(.\+\)\]/\1/g'` | ||
VERSION=`git log --oneline -1 --grep="\[" | awk '{print$2}' | sed 's/^\[\(.\+\)\/\(.\+\)\]/\2/g'` | ||
|
||
echo "Init github env..." | ||
git config --global user.name "zchee" | ||
git config --global user.email "zcheeee@gmail.com" | ||
|
||
echo "Push jar..." | ||
git add theme/$APP/$APP.jar | ||
git commit -m "Push $APP build $VERSION jar by CircleCI [ci skip]" | ||
git push origin circleci |
File renamed without changes.
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
Git LFS file not shown
This file was deleted.
Oops, something went wrong.
Git LFS file not shown
This file was deleted.
Oops, something went wrong.