Skip to content

Add config for CircleCI #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
version: 2.1

executors:
scala_jdk8_executor:
docker:
- image: circleci/openjdk:8-jdk-node
scala_jdk11_executor:
docker:
- image: circleci/openjdk:11-jdk

commands:
sbt_cmd:
description: "Build with sbt"
parameters:
scala_version:
type: string
default: 2.12.8
sbt_tasks:
type: string
default: update compile test:compile test doc package
steps:
- restore_cache:
keys:
- sbt-deps-v1-{{ checksum "build.sbt" }}
- sbt-deps-v1-
- run: sbt ++<< parameters.scala_version >> << parameters.sbt_tasks >>
- save_cache:
key: sbt-deps-v1-{{ checksum "build.sbt" }}
paths:
- "~/.ivy2/cache"
- "~/.sbt"
- "~/.m2"

jobs:
scala_job:
executor: scala_<<parameters.java_version>>_executor
parameters:
scala_version:
description: "Scala version"
default: 2.12.8
type: string
java_version:
description: "Java version"
default: jdk8
type: string
steps:
- checkout
- run: java -version
- sbt_cmd:
scala_version: << parameters.scala_version >>
sbt_tasks: xml/update xml/compile xml/test:compile xml/test xml/doc xml/package
scalajs_job:
executor: scala_jdk8_executor
parameters:
scala_version:
description: "Scala version"
default: 2.12.8
type: string
scalajs_version:
description: "ScalaJS version"
default: 0.6.28
type: string
environment:
SCALAJS_VERSION: << parameters.scalajs_version >>
steps:
- checkout
- run: java -version
- run: node -v
- sbt_cmd:
scala_version: << parameters.scala_version >>
sbt_tasks: xmlJS/update xmlJS/compile xmlJS/test:compile xmlJS/test xmlJS/doc xmlJS/package

workflows:
build:
jobs:
- scala_job:
name: 2.12.8
java_version: jdk8
scala_version: 2.12.8
- scala_job:
name: 2.13.0
java_version: jdk8
scala_version: 2.13.0
- scala_job:
name: dotty_0.16
java_version: jdk8
scala_version: 0.16.0-RC3
- scala_job:
name: jdk11_2.12.8
java_version: jdk11
scala_version: 2.12.8
- scala_job:
name: jdk11_2.13.0
java_version: jdk11
scala_version: 2.13.0
- scala_job:
name: dotty_0.16
java_version: jdk11
scala_version: 0.16.0-RC3
- scalajs_job:
name: sjs0.6_2.12
scala_version: 2.12.8
scalajs_version: 0.6.28
- scalajs_job:
name: sjs0.6_2.13
scala_version: 2.13.0
scalajs_version: 0.6.28
- scalajs_job:
name: sjs1.0.0-M8_2.12
scala_version: 2.12.8
scalajs_version: 1.0.0-M8
- scalajs_job:
name: sjs1.0.0-M8_2.13
scala_version: 2.13.0
scalajs_version: 1.0.0-M8