travis-ci

How do I use Travis-CI with C# or F#

£可爱£侵袭症+ 提交于 2019-11-29 19:03:29
Travis CI continuous integration service officially supports many languages , but not C# or F#. Can I use it with my .net projects? danielnixon Travis CI now supports C# . Quoting liberally from that page: Overview The setup for C#, F#, and Visual Basic projects looks like this: language: csharp solution: solution-name.sln mono: - latest - 3.12.0 - 3.10.0 Script By default Travis will run xbuild solution-name.sln. Xbuild is a build tool designed to be an implementation for Microsoft's MSBuild tool. To override this, you can set the script attribute like this: language: csharp solution:

Trigger a Travis-CI rebuild without pushing a commit?

╄→гoц情女王★ 提交于 2019-11-29 19:02:16
Using Travis-CI, is it possible to trigger a rebuild without pushing a new commit to GitHub? Use case: A build fails due to an externality. The source is actually correct. It would build OK and pass if simply re-run. For instance, an apt-get fails due to a package server being down, but the server is back up again. However the build status is "stuck" at "failed" until a new commit is pushed. Is there some way to nudge Travis-CI to do another build, other than pushing a "dummy" commit? jbtule If you have write access to the repo : On the build's detail screen, there is a button ↻ with the

subprocess.Popen: 'OSError: [Errno 13] Permission denied' only on Linux

断了今生、忘了曾经 提交于 2019-11-29 16:18:51
Code and logs have changed a lot (due to a major rewrite) since the question was asked. When my code (given below) executes on Windows (both my laptop and AppVeyor CI), it does what it's supposed to do. But on Linux (VM on TravisCI), it throws me a permission denied error. Error: $ sudo python3 test.py Testing espeak4py Testing wait4prev Traceback (most recent call last): File "test.py", line 10, in <module> mySpeaker.say('Hello, World!') File "/home/travis/build/sayak-brm/espeak4py/espeak4py/__init__.py", line 35, in say self.prevproc = subprocess.Popen(cmd, executable=self.executable, cwd=os

Create an emulator with a decent size from command line

廉价感情. 提交于 2019-11-29 11:07:05
I want to create an ARM API 21 emulator loaded with Google APIs. Here's how I create the AVD: ANDROID_ABI=google_apis/armeabi-v7a EMULATOR_VERSION=21 avd --force -n nexus4-emulator -t "Google Inc.:Google APIs:"$EMULATOR_VERSION --abi $ANDROID_ABI --device "Nexus 4" -c 128M And now I start up the emulator with: emulator -avd nexus4-emulator & However, this is what I get: a screen with tiny dimensions (in terms of effective pixels): How can I change this config so that I have a properly sized screen? I'm using this to build APKs and run tests on a machine in Travis, by the way, but it's

travis-ci build keeps failing with ShellCommandUnresponsiveException

橙三吉。 提交于 2019-11-29 07:11:33
I'm trying to get travis-ci to work with my android application. If I only execute assembleDebug it works fine. But I want to run tests too and generate code coverage. This is the config I have right now: language: android android: components: # Uncomment the lines below if you want to # use the latest revision of Android SDK Tools - platform-tools - tools # The BuildTools version used by your project - build-tools-23.0.1 # The SDK version used to compile your project - android-23 # Additional components # - extra-google-google_play_services # - extra-google-m2repository - extra-android

Travis CI: FATAL: role does not exist

风格不统一 提交于 2019-11-29 05:44:47
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 . For the record, put something like this in your .travis.yml : before_script: - psql -c "CREATE USER skateparks WITH PASSWORD 'skateparks';" -U postgres Your database.yml has this: development: adapter: postgresql encoding: utf8 database: skateparks_development username: skateparks password: template: template0 # Required for UTF8 encoding Note the username: skateparks part. Either drop that or create

How to fix the YAML syntax error: did not find expected '-' indicator while parsing a block?

折月煮酒 提交于 2019-11-29 05:37:53
I have some code written in my .travis.yml written for a Python library. Using lint.travis-ci.org , I came to know that there is some indentation problem in my YAML file. Here is the part which the error points to install: - if [[ "${TEST_PY3}" == "false" ]]; then pip install Cython; python setup.py build; # To build networkx-metis mkdir core; # For the installation of networkx core cd core; git clone https://github.com/orkohunter/networkx.git; cd networkx/; git checkout addons; python setup.py install; cd ..; fi Where am I wrong? The error says syntax error: (<unknown>): did not find expected

Remove Travis CI old builds

99封情书 提交于 2019-11-29 01:37:24
问题 This is my first day using Travis CI. I made some mistakes, I've tried removing and adding the repository again, but Travis CI build history is still there, with broken links for old commits. Any chance to remove those old builds? 回答1: There's no way for the user to remove builds, but if you really want them removed I think your best bet is to email support (support@travis-ci.org) and ask them to remove it manually. 回答2: You can use the travis command line tool Login first using travis login

Commiting google-services.json to GitHub

淺唱寂寞╮ 提交于 2019-11-28 22:48:32
问题 I am creating a public android project and I am using Google Sign-In service. I am doing it according to this tutorial. As it says, I have got the google-services.json file. Do I need to commit the above file to Github? Do other developers (If someone contributes) need this file? Or, do they have to create there own? By the way I am using Travis-CI. Will this file affect to CI build? 回答1: You can create a new build variant and store a template google-services.json to be used for your build on

How do I get Sonarcloud to run on pull requests from forks with Travis, Maven & github

萝らか妹 提交于 2019-11-28 21:15:13
While looking into my recent question Sonarcloud failure with Travis, Maven & github I realised that I was asking the wrong question. I was trying to address a symptom rather than the underlying problem. A project I work on ( eclipse/scanning ) uses Github as it's repository and Travis with Sonarcloud for continuous integration and code analysis. While the Sonarcloud analysis runs fine on internal pull requests (pull requests from branches pushed directly to eclipse/scanning) it doesn't work when Travis runs for external pull requests (those from forked repos). The underlying problem is that