Skip to content

Commit 7272339

Browse files
Update CircleCI image (#175)
* Update CircleCI image * PROD-4909: Change docker image Move away from deprecated image * Fix CircleCI Co-authored-by: Stephen Colebourne <[email protected]>
1 parent 53b8cef commit 7272339

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.circleci/config.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ executors:
66

77
#----------------------------------------------------------------------------
88
# vital to set the MaxRAM parameter as cgroups settings are not passed to the JVM
9-
jdk11:
9+
jdk11-small:
1010
docker:
11-
- image: circleci/openjdk:11.0.2-jdk
11+
- image: cimg/openjdk:11.0
12+
resource_class: small
1213
working_directory: ~/repo
1314
environment:
1415
JAVA_TOOL_OPTIONS: -XX:MaxRAM=1536m
15-
MAVEN_OPTS: -Xmx512m
16+
MAVEN_OPTS: -Xmx736m
17+
REPO_NAME: ClientData
1618

1719

1820
#############################################################################
@@ -27,9 +29,9 @@ commands:
2729
- run:
2830
name: Initializing Maven
2931
command: |
30-
mvn --version
3132
mkdir -p ./.mvn
32-
echo '-e -B -DtrimStackTrace=false --settings .circleci/maven-settings.xml' > ./.mvn/maven.config
33+
echo "-e -B -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd'T'HH:mm:ss.SSS -DtrimStackTrace=false -Dsurefire.useSystemClassLoader=false -Dog.deploy.branch=$CIRCLE_BRANCH -Dog.deploy.tag=$CIRCLE_TAG -Dog.deploy.sha=$CIRCLE_SHA1 --settings .circleci/maven-settings.xml" > ./.mvn/maven.config
34+
mvn --version
3335
3436
#----------------------------------------------------------------------------
3537
maven_install_test:
@@ -57,9 +59,9 @@ commands:
5759
command: |
5860
RELEASE_SHA=$(git rev-parse HEAD)
5961
git checkout main
60-
MASTER_SHA=$(git rev-parse HEAD)
61-
if [[ "$RELEASE_SHA" != "$MASTER_SHA" ]]; then
62-
echo "release tag SHA != main HEAD SHA, $RELEASE_SHA $MASTER_SHA"
62+
MAIN_SHA=$(git rev-parse HEAD)
63+
if [[ "$RELEASE_SHA" != "$MAIN_SHA" ]]; then
64+
echo "release tag SHA != main HEAD SHA, $RELEASE_SHA $MAIN_SHA"
6365
exit 1
6466
fi
6567
git config --local user.email "[email protected]"
@@ -127,15 +129,15 @@ commands:
127129
# jobs to run
128130
jobs:
129131
build:
130-
executor: jdk11
132+
executor: jdk11-small
131133
steps:
132134
- perform_build:
133135
actions:
134136
- maven_install_test
135137

136138
#----------------------------------------------------------------------------
137139
release:
138-
executor: jdk11
140+
executor: jdk11-small
139141
steps:
140142
- perform_build:
141143
actions:
@@ -145,7 +147,7 @@ jobs:
145147

146148
#----------------------------------------------------------------------------
147149
trigger_release:
148-
executor: jdk11
150+
executor: jdk11-small
149151
steps:
150152
- perform_build:
151153
actions:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenGamma Java SDK
22

3-
[![Build Status](https://travis-ci.org/OpenGamma/JavaSDK.svg?branch=master)](https://travis-ci.org/OpenGamma/JavaSDK) [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
3+
[![Build Status](https://travis-ci.org/OpenGamma/JavaSDK.svg?branch=main)](https://travis-ci.org/OpenGamma/JavaSDK) [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
44

55
The OpenGamma service is a platform for the independent calculation of metrics such as margin, fees and balance sheet,
66
to enable firms to optimize execution and clearing of derivatives.

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The release process is as follows:
55

66
1. Ensure all required changes have been merged
77

8-
1. Check out the master branch and ensure there are no local changes
8+
1. Check out the main branch and ensure there are no local changes
99

1010
1. Update CHANGELOG.md and version in README.md, committing the changes
1111

modules/margin/src/test/java/com/opengamma/sdk/margin/it/MarginClientRemoteIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import org.junit.jupiter.api.AfterAll;
2121
import org.junit.jupiter.api.BeforeAll;
22+
import org.junit.jupiter.api.Disabled;
2223
import org.junit.jupiter.api.MethodOrderer;
2324
import org.junit.jupiter.api.Order;
2425
import org.junit.jupiter.api.Test;
@@ -56,6 +57,7 @@
5657
* Run as a formal integration test via maven failsafe.
5758
* Requires two environment variables, hence is run via a maven profile.
5859
*/
60+
@Disabled("API key not public")
5961
@SuppressWarnings("deprecation")
6062
@TestInstance(Lifecycle.PER_CLASS)
6163
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)

0 commit comments

Comments
 (0)