Skip to content

Commit

Permalink
pipelines work
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Patrikalakis committed Feb 21, 2017
1 parent 9218a28 commit 80a32c2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 157 deletions.
3 changes: 2 additions & 1 deletion codepipelines-ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ Steps:
1. Get a personal access token from [GitHub](https://github.com/settings/tokens) with repo and admin:repo_hook scopes.
2. `mvn install`
3. `brew install awscli`
4. Navigate to the [AWS Console](https://console.aws.amazon.com) and create an IAM User with the following managed policies: IAMFullAccess, AmazonS3FullAccess, AWSCodePipelineFullAccess, AWSCodeBuildAdminAccess.
4. Navigate to the [AWS Console](https://console.aws.amazon.com) and create an IAM User with the following managed policies: AmazonS3FullAccess, AWSCodePipelineFullAccess, AWSCodeBuildAdminAccess.
5. For this user, create security credentials and then register them in the `code-pipelines` profile on your computer with `aws configure --profile code-pipelines`.
6. Create a service role for CodeBuild as described [here](http://docs.aws.amazon.com/codebuild/latest/userguide/setting-up.html#setting-up-service-role).
6. Run the program to create the stack and start a build:
```bash
mvn exec:java -Dexec.mainClass="org.janusgraph.codepipelines.AwsCodePipelinesCi" -Dexec.args="--region <region close to you> --bucket <bucket> --name <name of ci stack> --service-role-arn <AWS-CodePipeline-Service Role ARN> --github-owner JanusGraph --github-repo janusgraph --github-branch master --profile code-pipelines --environments=./environments.json --github-token <token>"
Expand Down
21 changes: 0 additions & 21 deletions codepipelines-ci/environments.json

This file was deleted.

28 changes: 28 additions & 0 deletions codepipelines-ci/pipelines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"janus1" : {
"bdb" : { "MODULE" : "janusgraph-berkeleyje" },
"cassandra" : { "MODULE" : "janusgraph-cassandra" },
"es" : { "MODULE" : "janusgraph-es", "ARGS" : "-DthreadCount=1" },
"hadoop" : { "MODULE" : "janusgraph-hadoop-parent/janusgraph-hadoop-2" },
"hbase09" : { "MODULE" : "janusgraph-hbase-parent/janusgraph-hbase-098" }
},
"janus2" : {
"hbase10" : { "MODULE" : "janusgraph-hbase-parent/janusgraph-hbase-10" },
"lucene" : { "MODULE" : "janusgraph-lucene", "ARGS" : "-DthreadCount=1" },
"solr" : { "MODULE" : "janusgraph-solr", "ARGS" : "-DthreadCount=1" },
"test" : { "MODULE" : "janusgraph-test" }
},
"janus-tp1" : {
"bdb-tp" : { "MODULE" : "janusgraph-berkeleyje", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" },
"cassandra-tp" : { "MODULE" : "janusgraph-cassandra", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" },
"es-tp" : { "MODULE" : "janusgraph-es", "ARGS" : "-DthreadCount=1 -Dtest.skip.tp=false -DskipTests=true" },
"hadoop-tp" : { "MODULE" : "janusgraph-hadoop-parent/janusgraph-hadoop-2", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" },
"hbase09-tp" : { "MODULE" : "janusgraph-hbase-parent/janusgraph-hbase-098", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" }
},
"janus-tp2" : {
"hbase10-tp" : { "MODULE" : "janusgraph-hbase-parent/janusgraph-hbase-10", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" },
"lucene-tp" : { "MODULE" : "janusgraph-lucene", "ARGS" : "-DthreadCount=1 -Dtest.skip.tp=false -DskipTests=true" },
"solr-tp" : { "MODULE" : "janusgraph-solr", "ARGS" : "-DthreadCount=1 -Dtest.skip.tp=false -DskipTests=true" },
"test-tp" : { "MODULE" : "janusgraph-test", "ARGS" : "-Dtest.skip.tp=false -DskipTests=true" }
}
}
Loading

0 comments on commit 80a32c2

Please sign in to comment.