Skip to content

Commit

Permalink
Move CI over to Circle CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slackersoft committed Jan 14, 2022
1 parent a1598af commit 23db414
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 36 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Java Gradle CircleCI 2.0 configuration file
# See: https://circleci.com/docs/2.0/language-java/
version: 2

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
docker:
# specify the version you desire here
- image: cimg/openjdk:8.0.312-node

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/IdeaJasmine

environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: ./gradlew dependencies

- save_cache:
paths:
- ~/.gradle
key: v1-dependencies-{{ checksum "build.gradle" }}

- run:
name: build and run tests
command: ./gradlew build --info

- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- store_test_results:
path: ~/test-results

- run:
name: Save built plugin
command: |
mkdir -p ~/package/
find build -type f -name '*.zip' -exec cp {} ~/package/ \;
- store_artifacts:
path: ~/package

35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Jasmine IntelliJ Plugin [![Build Status](https://travis-ci.com/jasmine/IdeaJasmine.svg?branch=main)](https://travis-ci.com/jasmine/IdeaJasmine)
# Jasmine IntelliJ Plugin [![CircleCI](https://circleci.com/gh/jasmine/IdeaJasmine/tree/main.svg?style=svg)](https://circleci.com/gh/jasmine/IdeaJasmine/tree/main)

This adds a new run configuration to IntelliJ (and IntelliJ based IDEs) that runs Jasmine and displays the results in the test console.

Expand All @@ -8,6 +8,7 @@ This adds a new run configuration to IntelliJ (and IntelliJ based IDEs) that run
1. In your IDE preferences, go to the "Plugins" node
* You can install it directly from [jetbrains](https://plugins.jetbrains.com/plugin/10449-jasmine)
* Or download from [release page](https://github.com/jasmine/IdeaJasmine/releases) and "Install plugin from disk"
* If you really want to be on the cutting edge, you can download the build artifact from the latest build [on Circle CI](https://app.circleci.com/pipelines/github/jasmine/IdeaJasmine?branch=main)
2. Restart your IDE

### Configure
Expand Down

0 comments on commit 23db414

Please sign in to comment.