continuous-integration

Using gitLab-CI for Qt-Projects

扶醉桌前 提交于 2020-06-25 03:43:43
问题 I want to use gitLab-CI for a Qt-project, but i can't figure out, what I need to do so. I understand, that the whole pipeline process takes place on the CI-Server, but how do I setup the needed requirements like the qt-environment? Solution: Ok now I got it! You just use the Runner for it, if you do not have a Server, you can use a VM. 回答1: For GitLab.com The runners are already set up (shared runners). You need to use a Qt SDK Docker image or install it yourself: Use image: <image-name> for

Installing Teamcity build agent as a user: failed to install the service. selected account does not have enough rights

寵の児 提交于 2020-06-24 08:13:55
问题 I want to install a TeamCity BuildAgend as a user. When entering my user credentials here: I always get this error: NOTE: My account (user) is Administrator with full permission! How can I do this? 回答1: The error message says it does not have "enough rights to run as a service" , this is slightly different from just being an administrator. Go to Control Panel> Administrative Tools> Local Security Policy . Select Local Policies> User Rights Assignment . Scroll down through the list of policies

Dependencies Between Workflows on Github Actions

☆樱花仙子☆ 提交于 2020-06-23 05:50:06
问题 I have a monorepo with two workflows: .github/workflows/test.yml name: test on: [push, pull_request] jobs: test-packages: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: test packages run: | yarn install yarn test ... .github/workflows/deploy.yml deploy-packages: runs-on: ubuntu-latest needs: test-packages steps: - uses: actions/checkout@v1 - name: deploy packages run: | yarn deploy env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ... This doesn't work, I can't reference a job

What is the best way to authomatically update project dependecnies

独自空忆成欢 提交于 2020-06-17 09:43:15
问题 I want some of my dependencies to be up-to-date and I want to make sure whenever there is a new version of my dependencies, my project uses the last version of that dependencies. I want to run a job in my Continuous Integration pipeline in order to update my dependencies and run all test in my project to make sure nothing bad happened during update. It can help us to overcome security vulnerabilities sooner And make changes to my project continuously. 回答1: Fortunately after a lot of search

Git history in a Github Action

ε祈祈猫儿з 提交于 2020-06-17 09:33:10
问题 I would like to log the git history in a Github Action. But it seems that the Action's environment has a different one: echo $(git log -5 --oneline) shell: /bin/bash -e {0} 7c0faa6 Merge c245982a87ef5538d42ab905706faa08f4d67ce9 into 8a939ef1f71eaecac0ae52d625dad3e3c9fa4c16 This is not a git log and none of these hashes matches what I have in my repo. Why is that? How to access the commit history from the environment of a Github Action? 回答1: You are experiencing this because your workflow is

Run firebase emulators on github actions

僤鯓⒐⒋嵵緔 提交于 2020-06-16 02:37:40
问题 I'm trying to run my test on Github Actinos but after several attempts I was not able to do so. Receiving Error: firestore: Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/ - name: Test uses: w9jds/firebase-action@v1.3.1 env: JAVA_HOME: ${{ env.JAVA_HOME }} FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} GCLOUD_PROJECT: ${{ secrets.nextGCLOUD_PROJECT }} PROJECT_ID: ${{ secrets.nextFIREBASE_PROJECTID }} with: args: | setup

How to force GitLab to run a complete pipeline before starting a new one?

半城伤御伤魂 提交于 2020-06-12 07:40:26
问题 I have one runner associated with my project to avoid concurrent build. GitLab to process the complete pipeline before start a new one? concurrent is set to = 1 (config file of the runner) before_script: - echo %CI_COMMIT_SHA% - echo %CI_PROJECT_DIR% stages: - createPBLs - build - package create PBLs: stage: createPBLs script: - md "C:\HierBauen\%CI_COMMIT_SHA%\" - xcopy /y /s "C:/Bauen" "C:/HierBauen/%CI_COMMIT_SHA%" - xcopy /y /s "%CI_PROJECT_DIR%" "C:\HierBauen\%CI_COMMIT_SHA%" - cd "C:

App Engine deploy: Permissions error fetching application

蓝咒 提交于 2020-06-12 04:53:29
问题 We are using a service account to deploy our app to App Engine using Travis. On every merged PR, Travis pulls the code from our GitHub repository, and pulls a Docker image which contains Google Cloud SDK and executes the gcloud app deploy command. We use a Service Account to perform the deployment with "Project Owner" role. Everything used to work fine until I added a new service to the project which automates SSL certificate generation and renewal, along with a dispatch.yaml file to route

How do programmers work together on a project?

泄露秘密 提交于 2020-06-09 07:20:11
问题 I've always programmed alone, I'm still a student so I never programmed with anyone else, I haven't even used a version control system before. I'm working on a project now that requires knowledge of how programmers work together on a piece of software in a company. How is the software compiled? Is it from the version control system? Is it by individual programmers? Is it periodic? Is it when someone decides to build or something? Are there any tests that are done to make sure it "works"?

Sonarqube: line out of range since file shrinks after merge with master

孤街浪徒 提交于 2020-06-01 06:18:42
问题 There is a fileA on master (say it consists of 1000 lines) We are on feature_branch , where fileA has length of say 1050 lines. On our CI pipeline, we are running coverage (it is a Python project) and it produces coverage.xml , to be used as cov input to SQ. Our SQ preview stage is as follows: - git config --global user.name "SonarQube" - git config --global user.email "sonarqube@somedomain.com" - git checkout origin/master - git merge $CI_BUILD_REF --no-commit --no-ff - sonar-scanner -Dsonar