Skip to content

Commit

Permalink
Merge pull request #19 from zchee/circleci
Browse files Browse the repository at this point in the history
CircleCI and Dockernize & Upgrade Intellij IDEA 15 EAP to build 142.4245.2
  • Loading branch information
zchee committed Aug 26, 2015
2 parents f578fbd + ca50e6f commit 147cdd4
Showing 25 changed files with 63 additions and 52 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
4 changes: 2 additions & 2 deletions Dockerfile.idea
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@ MAINTAINER zchee <zcheeee@gmail.com>

RUN java -version
ENV JAVA_VERSION oracle-java8
ENV IDEA_VERSION 142.4083.2
ENV IDEA_VERSION 142.4245.2

RUN curl -LO https://download.jetbrains.com/idea/ideaIU-$IDEA_VERSION.tar.gz
RUN tar xvf ideaIU-$IDEA_VERSION.tar.gz
RUN tar xf ideaIU-$IDEA_VERSION.tar.gz
# RUN cd idea-IU-$IDEA_VERSION

RUN cp idea-IU-$IDEA_VERSION/lib/idea.jar ./
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -55,14 +55,14 @@ In principle, it supports only the latest Stable or EAP(Early Access Preview) ve
| Application | Build |
|-------------------------------|-------------|
| IntelliJ IDEA 15 EAP | 142.4083.2 |
| RubyMine EAP | 142.4083.1 |
| PhpStorm 9.0.2 | 141.2462 |
| RubyMine 7.1.2 | 141.1119 |
| PhpStorm 8.0.3 | 139.1348 |
| PhpStorm 9 EAP | 141.1717 |
| WebStorm 11 EAP | 142.4148 |
| AppCode EAP 3.2 RC2 | 141.2456.7 |
| WebStorm 10.0.3 | 141.1237 |
| AppCode 3.1.6 | 139.1401.37 |
| AppCode EAP 3.2.0 | 141.1399.2 |
| Android Studio Canary 1.2.1.1 | 141.1903250 |
| CLion 1.1 | 141.2348.17 |
| PyCharm 4.5.4 | 141.2498 |
| CLion 1.0.4 | 141.874.66 |

If you want other ide or old version, please [issues](https://github.com/zchee/Seti_JetBrains/issues).

12 changes: 12 additions & 0 deletions build.sh
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

20 changes: 9 additions & 11 deletions circle.yml
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
15 changes: 15 additions & 0 deletions deploy.sh
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.
3 changes: 3 additions & 0 deletions theme/appcode-eap/appcode.jar
Git LFS file not shown
3 changes: 0 additions & 3 deletions theme/appcode-eap/mac/appcode.jar

This file was deleted.

3 changes: 0 additions & 3 deletions theme/appcode/mac/appcode.jar

This file was deleted.

3 changes: 3 additions & 0 deletions theme/clion/clion.jar
Git LFS file not shown
3 changes: 0 additions & 3 deletions theme/clion/mac/clion.jar

This file was deleted.

3 changes: 0 additions & 3 deletions theme/idea-eap/mac/idea.jar

This file was deleted.

Binary file added theme/idea/idea.jar
Binary file not shown.
3 changes: 0 additions & 3 deletions theme/idea/mac/idea.jar

This file was deleted.

3 changes: 0 additions & 3 deletions theme/idea15-eap/mac/idea.jar

This file was deleted.

3 changes: 0 additions & 3 deletions theme/phpstorm-eap/mac/phpstorm.jar

This file was deleted.

3 changes: 0 additions & 3 deletions theme/phpstorm/mac/phpstorm.jar

This file was deleted.

3 changes: 3 additions & 0 deletions theme/phpstorm/phpstorm.jar
Git LFS file not shown
3 changes: 0 additions & 3 deletions theme/phpstorm/windows/8.0.2/phpstorm.jar

This file was deleted.

3 changes: 3 additions & 0 deletions theme/pycharm-eap/pycharm.jar
Git LFS file not shown
3 changes: 3 additions & 0 deletions theme/rubymine-eap/rubymine.jar
Git LFS file not shown
3 changes: 0 additions & 3 deletions theme/rubymine/mac/rubymine.jar

This file was deleted.

3 changes: 3 additions & 0 deletions theme/webstorm-eap/webstorm.jar
Git LFS file not shown
3 changes: 0 additions & 3 deletions theme/webstorm/mac/webstorm.jar

This file was deleted.

0 comments on commit 147cdd4

Please sign in to comment.