travis-ci

Travis-CI doesn't let me rebuild a test

亡梦爱人 提交于 2020-02-28 04:49:53
问题 We are using Travis-CI to test our project (Speedy Net). A test failed and I want to rebuild it. I checked this answer but it doesn't work for me. This changed recently. I'm the owner of this organization on GitHub but on Travis CI I'm not a member of any organization. On this build's page I don't have any rebuild button. What can I do to be able to rebuild this test? Travis CI for Open Source 回答1: It depends, if the test is triggered via a pull request then it is as simple as closing then

Why is the COPY instruction causing a cache miss in my Docker build

試著忘記壹切 提交于 2020-02-21 07:04:32
问题 The copy instruction in the docker file for my project seems to cause a cache miss, even though none of the files being copied have changed since the image was last pushed to docker hub. This causes all subsequent layers to miss the cache which makes the build take much longer than it should. I've also noticed that the hashes belonging to each layer seem to be different than what they are when I docker build on my local machine. Could this be because of a docker version mismatch? What is

Why is the COPY instruction causing a cache miss in my Docker build

拜拜、爱过 提交于 2020-02-21 07:03:35
问题 The copy instruction in the docker file for my project seems to cause a cache miss, even though none of the files being copied have changed since the image was last pushed to docker hub. This causes all subsequent layers to miss the cache which makes the build take much longer than it should. I've also noticed that the hashes belonging to each layer seem to be different than what they are when I docker build on my local machine. Could this be because of a docker version mismatch? What is

How can I run a script as part of a Travis CI build?

允我心安 提交于 2020-02-03 04:40:12
问题 As part of a Python package I have a script myscript.py at the root of my project and setup(scripts=['myscript.py'], ...) in my setup.py . Is there an entry I can provide to my .travis.yml that will run myscript.py (e.g. after my tests)? I've tried language: python python: - "2.7" install: - pip install -r requirements.txt - pip install pytest script: - py.test -v --color=yes --exitfirst --showlocals --durations=5 - myscript.py some args but get a "command not found" error. I don't need (or

Travis + Openshift Not deploying to openshift

大憨熊 提交于 2020-01-24 22:42:11
问题 We are having issues with being able to deploy to openshift. The deployment process runs but then doesn't actually deploy any new code to our gears. Here is my travis file: language: node_js node_js: - '0.10' before_script: - npm install -g bower grunt-cli - gem install sass - bower install services: mongodb before_deploy: - rm -rf .sass-cache .tmp client e2e node_modules server styleguide *.* - mv dist/* ./ - rm -rf dist - ls notifications: slack: REMOVED deploy: - provider: heroku api_key:

How to stop services on Travis CI running by default?

ⅰ亾dé卋堺 提交于 2020-01-24 03:56:44
问题 The machine instances running for Travis CI start some services by default which are not useful to my project. Therefore I want to stop these services. My first idea was to use the following block in my .travis.yml to do so: before_script: # Disable services enabled by default - sudo service mysql stop - sudo service postgresql stop However, this was successful for one and failed for another machine: $ sudo service mysql stop mysql stop/waiting $ sudo service postgresql stop * Stopping

How to use theme from github.io site for Github Project Pages sites

六月ゝ 毕业季﹏ 提交于 2020-01-24 01:02:16
问题 I've been working on my website on and off for a couple years, learned a ton about JavaScript, CSS, HTML, Bootstrap, Jekyll, Travis-CI, and Github Pages in the process. (Long list is a major factor in why it's taken so long.) I've discovered that if I push to (or have Travis deploy to) the gh-pages branch of a repo, it actually becomes a subdomain of my website. Examples: here, here, here. This is pretty awesome, but those sub-pages end up feeling like they're not a part of the same website,

Python3 module import fails on Travis ci

南楼画角 提交于 2020-01-23 07:47:59
问题 I have made a Python 3 script for testing a project of mine. The script has this structure: main.py myRequest.py external/ requests/ __init__.py many files of the library... When I run python3 main.py the file myRequest.py is imported. Inside that file, I do import external.requests as reqs . This works for me, and also passes on Travis CI However, when I put the above files in the folder test of my project, the Travis CI job cannot find the module: ImportError: No module named external

Python3 module import fails on Travis ci

浪尽此生 提交于 2020-01-23 07:47:40
问题 I have made a Python 3 script for testing a project of mine. The script has this structure: main.py myRequest.py external/ requests/ __init__.py many files of the library... When I run python3 main.py the file myRequest.py is imported. Inside that file, I do import external.requests as reqs . This works for me, and also passes on Travis CI However, when I put the above files in the folder test of my project, the Travis CI job cannot find the module: ImportError: No module named external

How to run aws configure in a travis deploy script?

佐手、 提交于 2020-01-21 04:07:10
问题 I am trying to get travis-ci to run a custom deploy script that uses awscli to push a deployment up to my staging server. In my .travis.yml file I have this: before_deploy: - 'curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"' - 'unzip awscli-bundle.zip' - './awscli-bundle/install -b ~/bin/aws' - 'export PATH=~/bin:$PATH' - 'aws configure' And I have set up the following environment variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION with their