|
|
@@ -12,6 +12,9 @@ import cn.reghao.devops.mgr.mgr.app.model.po.config.AppConfig;
|
|
|
import cn.reghao.devops.mgr.mgr.app.model.po.config.AppDeployConfig;
|
|
|
import cn.reghao.devops.mgr.mgr.app.model.po.log.BuildConsumed;
|
|
|
import cn.reghao.devops.mgr.mgr.app.model.po.log.BuildLog;
|
|
|
+import cn.reghao.devops.mgr.mgr.builds.db.repository.CompilerConfigRepository;
|
|
|
+import cn.reghao.devops.mgr.mgr.builds.model.po.CompilerBind;
|
|
|
+import cn.reghao.devops.mgr.mgr.builds.model.po.CompilerConfig;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
@@ -112,4 +115,15 @@ public class AppConfigTest {
|
|
|
|
|
|
buildLogRepository.saveAll(buildLogs);
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ CompilerConfigRepository compilerConfigRepository;
|
|
|
+ @Test
|
|
|
+ public void compilerTest() {
|
|
|
+ CompilerConfig compilerConfig = compilerConfigRepository.findById(7).orElse(null);
|
|
|
+ List<CompilerBind> list = compilerConfig.getCompilerBinds();
|
|
|
+ list.add(new CompilerBind("/home/reghao/Downloads/0/node_modules", "/app/node_modules"));
|
|
|
+ compilerConfigRepository.save(compilerConfig);
|
|
|
+ System.out.println();
|
|
|
+ }
|
|
|
}
|