ci

Unable to locate the specified class: Session.php in Codeigniter

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The browser: Unable to locate the specified class: Session.php This is my Controller: <?php class Chat extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('Chat_model'); } public function index() { $this->view_data['chat_id'] = 1; $this->view_data['student_id'] = $this->session->userdata('student_id'); $this->view_data['page_content'] = 'chat'; $this->load->view('chat'); } public function ajax_addChatMessage() { $chat_id = $this->input->post('chat_id'); $student_id = $this->input->post('student

Why is ***NO_CI*** still causing a continuous intregration build?

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've recently discovered the "hidden feature" of TFS that allows you to prevent a CI build from kicking off if your comment contains ***NO_CI*** . I have TFS running at home and this works little trick works like a charm. At work we are also using TFS 2010. I'm finding that this still does not prevent CI builds from kicking off in our setup. My question is, what process actually checks to see if ***NO_CI*** exists in the comment to determine whether or not to block the CI build? My initial thought was to look at the build template. I didn't

How to deploy with Gitlab-Ci to EC2 using AWS CodeDeploy/CodePipeline/S3

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been working on a SlackBot project based in Scala using Gradle and have been looking into ways to leverage Gitlab-CI for the purpose of deploying to AWS EC2. I am able to fully build and test my application with Gitlab-CI. How can I perform a deployment from Gitlab-CI to Amazon EC2 Using CodeDeploy and CodePipeline? Answer to follow as a Guide to do this. 回答1: I have created a set of sample files to go with the Guide provided below. These files are available at the following link: https://gitlab.com/autronix/gitlabci-ec2-deployment

How can I make Jenkins CI with git trigger on pushes to master?

匿名 (未验证) 提交于 2019-12-03 02:02:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to set up Jenkins-ci for a project using github. I've already set up jenkins with the appropriate plugins. I want jenkins to run build scripts only whenever someone on the project pushes to master. So far I've been able to set it up so that a build will be triggered anytime anyone pushes to anywhere, but that is too broad. I've done this with post-receive service hooks on git. I've read the jenkins wiki, and a couple of tutorials, but this particular detail is missing... is it something to do with polling maybe? Or should work be

Travis CI: FATAL: role does not exist

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to get my application working w/ Travis CI but I keep getting: FATAL: role "skateparks" does not exist . Any ideas on what I could be doing wrong? I've followed their documentation . 回答1: For the record, put something like this in your .travis.yml : before_script : - psql - c "CREATE USER skateparks WITH PASSWORD 'skateparks';" - U postgres 回答2: Your database.yml has this: development : adapter : postgresql encoding : utf8 database : skateparks_development username : skateparks password : template : template0 # Required

Codeigntier extend Email library ci 3.0.4

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have trying to override the email library by doing the following steps: Create file core/MY_Email.php In file add code below <?php class MY_Email extends CI_Email { public function __construct() { parent::__construct(); } ?> Load library is normal $this->load->library('email'); I put a die in the top of my class and it appears to not even be included and just uses the regular system email class. I need to extend it to override _smtp_connect(). I have done this with other classes. I am using CI 3.0.4. I have tried to trace through the

./deploy.sh not working on gitlab ci

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My problem is the bash script I created got this error "/bin/sh: eval: line 88: ./deploy.sh: not found" on gitlab. Below is my sample script .gitlab-ci.yml . I suspect that gitlab ci is not supporting bash script. image: docker:latest variables: IMAGE_NAME: registry.gitlab.com/$PROJECT_OWNER/$PROJECT_NAME DOCKER_DRIVER: overlay services: - docker:dind stages: - deploy before_script: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com - docker pull $IMAGE_NAME:$CI_BUILD_REF_NAME || true production-deploy: stage: deploy

Gitlab CI - Auto DevOps job failed, Unable to select a buildpack for a Go project?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My Gitlab CI Auto DevOps job failed with Status: Downloaded newer image for gliderlabs/herokuish:latest -----> Unable to select a buildpack ERROR: Job failed: exit code 1 I've gone through Auto DevOps and Getting started with Auto DevOps and am still not sure where I should put the buildpack. Mine should be heroku-buildpack-go , which I've lost track where I get that from. My repo consist only a single-character README.md , and the "Hello, playground" main.go . Conclusion: Thanks to David's comprehensive explanation, I was able to get DevOps

Gitlab CI - docker: command not found

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to build my docker image within the gitlab ci pipeline. However it is not able to find the docker command. /bin/bash: line 69: docker: command not found ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1 .gitlab-ci.yml stages: - quality - test - build - deploy image: node:8.11.3 services: - mongo - docker:dind before_script: - npm install quality: stage: quality script: - npm run-script lint test: stage: test script: - npm run-script test build:

Null Issue with NeighboringCellInfo, CID and LAC

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For a while I was trying to get CellID and LAC of near base stations. Unfortunately I did not manage to do that. First option was to use: GsmCellLocation xXx = new GsmCellLocation(); CID = xXx.getCid(); LAC = xXx.getLac(); Toast output = Toast.makeText(getApplicationContext(), "Base station LAC is "+LAC+"\n" +"Base station CID is " +CID, Toast.LENGTH_SHORT); output.show(); But in this case I receive -1 value (as I understand that means it is not a GSM, but when i check with isGSM it shows "true"). Another way I have found surfing the net (i