travis-ci

Apply american fuzzy lop as a part of Travis CI?

非 Y 不嫁゛ 提交于 2019-12-10 16:48:01
问题 I would like to run american fuzzy lop as a part of Travis CI run. How can I do that? 回答1: Here are my attempts - I managed to run AFL this way: https://github.com/d33tah/travis-test-c-app .travis.yml language: c install: wget "http://lcamtuf.coredump.cx/afl/releases/afl-1.88b.tgz" -O- | tar zxf - ; pushd . ; cd afl-*; make PREFIX=/tmp/afl install; echo core | sudo tee /proc/sys/kernel/core_pattern; popd Makefile CC=/tmp/afl/bin/afl-gcc all: app test: app ./perform_fuzzing perform_fuzzing #!

Caching a single file on Travis CI

拥有回忆 提交于 2019-12-10 16:31:35
问题 Inside my build on travis I need to first download a large .tar.gz file. This .tar.gz never changes so it's a good idea cache it. The .tar.gz it's downloaded inside my Dockerfile: RUN curl ftp://mycompanyftp.com/foo/bar/mylargefile.tar.gz -o /tmp/mylarge.tar.gz With that the docker container build with the file inside. How can I cache this file? PS : It's also possible to download the file on before_install and use docker ADD to put it inside the Docker container. 回答1: This is not possible as

How to build Rust examples without running

旧城冷巷雨未停 提交于 2019-12-10 15:47:42
问题 Is there any way to build Rust examples without running them? Specifically to test examples build successfully using Travis CI. 回答1: cargo test automatically builds examples (but doesn't run them). I believe it does this first, before the main test runners, but you can verify with cargo test -v . 回答2: I use the following code to run with Travis language: rust rust: - stable - beta script: - cargo build --verbose --all - cargo test --verbose --all 回答3: cargo test runs examples. To build them

Trigger travis ci builds if another git repository updates

≯℡__Kan透↙ 提交于 2019-12-10 15:24:14
问题 Let's say that I have a git repository A and another git repository B . I have my .travis.yml file in A repository. Now I want to trigger travis build whenever there is a commit in B repository. Can someone show me the complete precedure on how this is done? 来源: https://stackoverflow.com/questions/37568519/trigger-travis-ci-builds-if-another-git-repository-updates

Error with JavaScript enabled tests (Bootstrap 3, Rails 4, Travis CI)

不打扰是莪最后的温柔 提交于 2019-12-10 14:51:36
问题 I have strange error that appears only in CI environment. This error does not appear in develpment, production or even local test environments. ActionController::RoutingError: No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.svg" Full trace can be found here In development and production enviroments successfull reqest goes to /assets/bootstrap/glyphicons-halflings-regular.woff . There is a difference in /fonts/ - /assets and svg - woff part. All errors generated by

CI for Qt app: build with different Qt versions

假如想象 提交于 2019-12-10 14:47:14
问题 I use Travis-CI for continuous integration for my simple Qt app. My .travis.yml file looks like this (based on this gist): language: cpp before_install: - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa - sudo apt-get update -qq - sudo apt-get install -qq g++ qt4-qmake libqt4-dev qt5-qmake qtbase5-dev script: - qmake -qt=qt4 -v - qmake -qt=qt4 - make - make -k check - make clean - qmake -qt=qt5 -v - qmake -qt=qt5 - make - make -k check This configuration allows me to build my app (and

What is a good way to deploy a distributed application using CodeDeploy and a CI tool?

爱⌒轻易说出口 提交于 2019-12-10 14:24:07
问题 When using AWS, it seems a nice way to deploy an application to a newly created instance is via AWS CodeDeploy. This works as follows: Set up an auto-scaling group for the application Write a user-data bash script for the auto-scaling group which pulls the CodeDeploy agent from S3, installs it and starts it Set up a CodeDeploy deployment group which deploys to the auto-scaling group Now, when an application bundle (e.g. jar or debian package) is deployed to the deployment group, it will be

travis-lint: why does it complain about java language field

佐手、 提交于 2019-12-10 14:00:07
问题 I have this dead simple .travis.yml for a java project. When i run 'travis-lint' against the file is complains [17:24:23@emeraldjava]$ travis-lint /Users/pauloconnell/projects/emeraldjava/.travis.yml has issues: Found an issue with the `language:` key: Language must be valid Any ideas? My build actually works once deployed out. 回答1: Until the problem is resolved with the command line tool, and as @joshua-anderson proposed, use the web linter http://lint.travis-ci.org/. Simply copy/paste your

Possible to run bower & npm on Travis-initiated builds?

做~自己de王妃 提交于 2019-12-10 13:46:44
问题 I have a project that I'm hosting at GitHub (https://github.com/njacobs5074/InOutBoard) that runs the npm and bower commands from Maven as part of the build. This is done to ensure that the proper JavaScript packages are installed - my project is a Java web app with a JavaScript front-end. Obviously this works fine on my dev box since I have these commands installed an in my PATH. Just not clear on how to get this working with Travis. Thanks much, Nick 回答1: Every Travis worker has a node.js

Travis-CI error with “eval pod install”

一曲冷凌霜 提交于 2019-12-10 11:25:53
问题 My .travis.yml file: language: objective-c script: xctool -workspace ProjectName.xcworkspace -scheme ProjectName build -sdk iphonesimulator While Travis-CI is building the project it says: $ bundle --version Bundler version 1.7.4 $ xcodebuild -version -sdk $ pod --version 0.34.4 Installing Pods with 'pod install' $ pushd . ~/build/GabrielMassana/ProjectName-iOS $ pod install While installing pods the error is: The command "eval pod install" failed. Retrying, 2 of 3. The command "eval pod