How do detect if Travis-Ci or not

In general you can detect if you are on Travis-CI by checking the environment variables. You can check either for CI=true or the more specific TRAVIS=true. In PHP you can use the getenv() function to get the value of an environment variable. See the complete list of the environment. You can set even more env … Read more

Remove Travis CI old builds

You can use the travis command line tool Login first using travis login then you can do the following LAST_BUILD_NUMBER=68 for i in $(seq 1 $LAST_BUILD_NUMBER ); do travis logs $i –delete –force ; done This will remove the “logs” so there’s no information aside from the header and any confidential information will no longer … Read more

How does travis-ci.org throttle builds?

If you check out the travis-ci status page (http://www.traviscistatus.com/) you’ll notice that the “Active Linux Builds for Open Source projects” periodically maxes out. Based on how the travis private build system works (a single queue for all “Build Jobs” with no more than x running at a time), I suspect they have a single queue … Read more

What are the differences between the {before_,}{install,script} .travis.yml options?

You don’t need to use these sections, but if you do, you communicate the intent of what you’re doing: before_install: # execute all of the commands which need to be executed # before installing dependencies – composer self-update – composer validate install: # install all of the dependencies you need here – composer install –prefer-dist … Read more

How to set up Travis CI with multiple languages

It seems to be possible now to run several languages in one .travis.yml file using the jobs:include feature. As an example, my Github repo is arranged as follows: project/ – top-level github directory project/backend – Python backend project/backend/tests – Python tests project/android/AppName – Android app project/ios/AppName – iOS app Here is the .travis.yml, which runs … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)