travis-ci

SSL Certificate Failure on Travis, but works fine locally (using Requests and Certifi)

巧了我就是萌 提交于 2020-01-06 19:52:55
问题 I am scraping the following site using requests and certifi: https://ecf.ared.uscourts.gov/ When I scrape it on my local machine, it works fine, but when I run automated tests in Travis, it fails with: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) The code I'm using for this is pretty straightforward: url = 'https://ecf.ared.uscourts.gov/cgi-bin/login.pl' r = requests.post( url, verify=certifi.where(), timeout=60, files={ 'login': ('', username), 'key': (''

Travis build with scope provided (java websockets)

天涯浪子 提交于 2020-01-06 04:55:07
问题 I am setting up websockets with my Java j2ee servlet application. I was able to write the entire code and got the websockets working using following maven configuration - <dependency> <groupId>javax.websocket</groupId> <artifactId>javax.websocket-api</artifactId> <version>1.1</version> <scope>provided</scope> </dependency> My implementation does not work without <scope>provided</scope> and gives handshake exception: 404 not found . Now, when I deploy my application on dev machines using

Compile App Engine application in Travis

馋奶兔 提交于 2020-01-06 04:23:09
问题 Is there any way to run the compiler on an App Engine application written in Go without continue to serve the application with the development server and instead get an exit code? Because I want to add a check in my automated tests in Travis that the application actually compiles. To clarify: I have access to the App Engine SDK / Development Server in Travis, but I dont want to run goapp serve since it never exits. 回答1: Without actually implementing test, your solution looks pretty hacky. Why

Upload gist upon travis-ci failure

有些话、适合烂在心里 提交于 2020-01-05 06:50:55
问题 I have an open source project that I'd like to test using travis-ci. Sadly it is rather flaky and I'd like to know the reason. The tests write very verbose log files, so I'd like to export these, upon failure to Github Gist. There are command line tools that allow me to do that, gist-paste for instance, however I don't know how to run them only upon failure and without overriding the return code of the unittests, i.e., I'd still like travis-ci to notice the failure. 回答1: Great idea. Travis CI

How to setup a Travis/Rails project to submit to Coverity Scan?

Deadly 提交于 2020-01-05 04:35:31
问题 I'm looking for a std travis coverity setup for a rails application. My current .travis.yml file looks like this: # environment settings env: - DB=sqlite - DB=mysql - DB=postgresql env: global: # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created # via the "travis encrypt" command using the project repo's public key - secure: "<SECURE>" # project language language: ruby rvm: - 2.3.1 # branches to build (whitelist) branches: only: - master - coverity_scan - testing # command to

Travis-CI implementation of Android SDK 25 with Emulator

隐身守侯 提交于 2020-01-05 03:49:05
问题 I need help with implementing Travis-CI in my android repository. My Project is compiled with SDK 25 but is downwards compatible to Version 21. How do I have to change my .travis.yml to run an android emulator thats compatible with that SDK Version? .travis.yml: language: android jdk: oraclejdk8 android: components: - tools # to get the new `repository-11.xml` - tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943) - platform-tools - extra-google-google_play

TravisCI Android build fails only on CI not locally

蹲街弑〆低调 提交于 2020-01-05 01:45:19
问题 I have got a strange error and cannot find a solution: * What went wrong: Execution failed for task ':app:compileDebugAndroidTestGroovy'. > Unable to load class de.rheinfabrik.mvvm_example.activities.DetailsActivity due to missing dependency android/support/v4/view/LayoutInflaterFactory But it´s impossible. This project works locally. Also the dependency is there. Here my .travis.yml language: android jdk: oraclejdk8 env: matrix: - ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a global: -

TravisCI Android build fails only on CI not locally

こ雲淡風輕ζ 提交于 2020-01-05 01:44:50
问题 I have got a strange error and cannot find a solution: * What went wrong: Execution failed for task ':app:compileDebugAndroidTestGroovy'. > Unable to load class de.rheinfabrik.mvvm_example.activities.DetailsActivity due to missing dependency android/support/v4/view/LayoutInflaterFactory But it´s impossible. This project works locally. Also the dependency is there. Here my .travis.yml language: android jdk: oraclejdk8 env: matrix: - ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a global: -

Travis unable to find csharp solution

余生颓废 提交于 2020-01-04 06:50:21
问题 In reference to this build and my ./.travis.yml file. Im unable to build my project using Travis CI. I get the following error: No solution or script defined, exiting Going by csharp.rb:88, it suggests the solution isnt set in my yml file, but it quite clearly is. Any pointers would be greatly appreciated. language: csharp solution: OrderedJobs.sln before_install: - sudo apt-get install nunit-console before_script: - nuget restore OrderedJobs.sln after_script: - nunit-console OrderedJobs

How to use Travis without a .travis.yml file in the root folder of a repository?

℡╲_俬逩灬. 提交于 2020-01-03 17:22:15
问题 I really want to use Travis without the need to store .travis.yml in the root folder of my repository. Any idea if it can be moved in a different folder, stored in another repository or specified on the Travis website? 回答1: From Customizing the Build: Travis CI uses .travis.yml file in the root of your repository to learn about your project and how you want your builds to be executed. You can't move it, or configure it elsewhere. stored in another repository You could potentially create a