makefile - CircleCI 在运行 make 命令时出错
问题描述
我想 config.yml 具有“构建”和“测试”作业。我们Makefile
的 docker 映像中有一个,但似乎找不到 make 文件,因为我总是收到此错误
#!/bin/bash -eo pipefail
make test
make: *** No rule to make target 'test'. Stop.
Exited with code exit status 2
CircleCI received exit code 2
有人熟悉这个吗?我不确定我错过了什么。谢谢!
这是 yml 文件:
version: 2.1
workflows:
my-workflow:
jobs:
- build:
context: circleci-aws-credentials
- test
jobs:
build:
docker:
- image: circleci/openjdk:11-jdk
working_directory: ~/my-project
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
key: my-project-service-{{ checksum "./build.gradle" }}
test:
docker:
- image: circleci/openjdk:11-jdk
working_directory: ~/my-project
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
steps:
- run:
name: Gradle test
command: make test
- store_test_results:
path: ./build/test-results
提前谢谢你的帮助!
解决方案
推荐阅读
- android - 将 Android Studio 从 3.1.3 版更新到 3.1.4 版时出现的问题
- javascript - 将部分html页面存储在变量中
- cassandra - 我们如何在 Cassandra 中进行空间查询?Cassandra 是否有任何 GIS 扩展?
- css - SCSS - 检查字体系列的变量
- apache-spark - 如何强制 Spark/Hive 创建具有自定义权限的 task_* 目录
- python - NLP:是否有任何模型可以生成具有自定义长度的句子嵌入?
- xamarin.forms - 如何在 HttpClient Post 中发送 XML 数据
- performance - 有人可以解释为什么 SDL 窗口在几秒钟后变灰吗?
- javascript - 广告内的服务器端图库(php、js?、ajax)
- jquery - JQuery 捕获两个不同元素上的两个不同事件以运行相同的功能