未验证 提交 c0f6f91b 编写于 作者: D Dejan Mijić 提交者: GitHub

Run redis container in CI (#23)

上级 7874cbdf
......@@ -16,7 +16,7 @@ machine_ubuntu: &machine_ubuntu
machine:
image: ubuntu-1604:201903-01
install_jdk: &install_jdk
install_deps: &install_jdk
- run:
name: Install JDK
command: |
......@@ -58,10 +58,10 @@ save_cache: &save_cache
- save_cache:
key: sbt-zio-redis-cache
paths:
- "~/.ivy2/cache"
- "~/.sbt"
- "~/.m2"
- "~/.cache"
- "~/.ivy2/cache"
- "~/.sbt"
- "~/.m2"
- "~/.cache"
filter_tags: &filter_tags
tags:
......@@ -90,6 +90,9 @@ test: &test
- checkout
- <<: *load_cache
- <<: *install_jdk
- run:
name: Run Redis
command: docker run -d redis:5-alpine
- run:
name: Run tests
command: ./sbt ++${SCALA_VERSION}! test
......@@ -97,23 +100,23 @@ test: &test
release: &release
steps:
- checkout
- run:
name: Fetch git tags
command: git fetch --tags
- <<: *load_cache
- run:
name: Write sonatype credentials
command: echo "credentials += Credentials(\"Sonatype Nexus Repository Manager\", \"oss.sonatype.org\", \"${SONATYPE_USER}\", \"${SONATYPE_PASSWORD}\")" > ~/.sbt/1.0/sonatype.sbt
- run:
name: Write PGP public key
command: echo -n "${PGP_PUBLIC}" | base64 -di > /tmp/public.asc
- run:
name: Write PGP secret key
command: echo -n "${PGP_SECRET}" | base64 -di > /tmp/secret.asc
- run:
name: Release artifacts
command: ./sbt ++${SCALA_VERSION}! ci-release
- checkout
- run:
name: Fetch git tags
command: git fetch --tags
- <<: *load_cache
- run:
name: Write sonatype credentials
command: echo "credentials += Credentials(\"Sonatype Nexus Repository Manager\", \"oss.sonatype.org\", \"${SONATYPE_USER}\", \"${SONATYPE_PASSWORD}\")" > ~/.sbt/1.0/sonatype.sbt
- run:
name: Write PGP public key
command: echo -n "${PGP_PUBLIC}" | base64 -di > /tmp/public.asc
- run:
name: Write PGP secret key
command: echo -n "${PGP_SECRET}" | base64 -di > /tmp/secret.asc
- run:
name: Release artifacts
command: ./sbt ++${SCALA_VERSION}! ci-release
jobs:
lint:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册