31 Commits

Author SHA1 Message Date
Jimmy Berry
c4d8661f1c travis: provide local OBS setup and clone base data. 2017-10-24 17:55:32 -05:00
ed01f0681d Parallelize flake8 run
rather than find / xargs we run flake8 over everything which uses all
available cpus by default. Also set max line length to 100 because jimmy
likes it.
2017-10-20 08:54:11 +02:00
Jimmy Berry
e36827e184 dist/ci/docker-run: utilize throwaway credentials to workaround OBS issue. 2017-10-19 21:58:52 -05:00
Jimmy Berry
d33ed73a7c dist/ci/osc-init: print OBS_API and OBS_USER for debugging. 2017-10-19 21:58:52 -05:00
Jimmy Berry
80bac0d71f dist/ci: use hidden directory .docker-tmp instead of HOME and cache on travis. 2017-10-19 21:58:52 -05:00
Jimmy Berry
3fb1a4a641 dist/ci: fallback to /public OBS API in the event of no OBS_PASS 2017-10-19 21:58:52 -05:00
Jimmy Berry
846eb45a6f dist/ci: provide OBS_API parameter. 2017-10-19 21:58:52 -05:00
Jimmy Berry
4bc92ac0c1 dist/ci: rework spec.sh as obs-build-target using osc build.
Instead of performing a slim rpm build and check directly inside the
container a proper build is performed using `osc build`. The target
package is checked out the _service file pointed at the local copy
and then `osc service disabledrun` before building.
2017-10-19 21:58:49 -05:00
Jimmy Berry
a777ec97da dist/ci: extract common osc setup as osc-init and provide in /usr/bin. 2017-10-19 21:58:29 -05:00
Jimmy Berry
721bb1ed6a dist/ci/Dockerfile: include obs-deploy in /usr/bin.
Paving the way for this image to be built outside of this repository.
2017-10-19 21:58:29 -05:00
Jimmy Berry
6387768211 dist/ci: rename deploy.obs.sh to obs-deploy. 2017-10-19 21:58:29 -05:00
Jimmy Berry
88ebbd6c95 dist/ci/deploy: only commit if changes available to commit. 2017-10-19 21:58:29 -05:00
Jimmy Berry
9392b4daa9 dist/ci/deploy: only add line if missing from _servicedata.
Avoids duplication when multiple PRs are merged quickly after one another.
2017-10-19 21:58:29 -05:00
Jimmy Berry
c2ddfaee4b dist/ci/Dockerfile: switch to base tumbleweed image.
The official base image is now updated regularly so no need to use
custom rebuilding image.
2017-10-19 21:58:29 -05:00
6e78eb95fe Enable F405,F811 (Unused imports)
Remove imports that are either duplicate or unused
2017-10-20 01:03:00 +02:00
2219190e18 Add Flake8 travis infrastructure
This at least allows the most glaring errors to be found before they
get merged. Almost all lintstyle and make flake8 errors are ignored
right now, to be cleaned up once the testing is in place.
2017-10-20 01:01:23 +02:00
Jimmy Berry
e883604d05 dist/ci/deploy: handle expanded links during target project loookup. 2017-10-06 18:12:42 -05:00
Jimmy Berry
4161a7ec0d dist/ci/deploy: pipe osc sr --diff to cat to ensure same behavior manually run. 2017-10-06 17:49:24 -05:00
Jimmy Berry
ace27a9385 dist/ci/deploy: automatically detect target project and package. 2017-10-06 17:48:39 -05:00
Jimmy Berry
a99faac2ba dist/ci/deploy: wait for service to complete before create submit request. 2017-10-06 17:40:08 -05:00
Jimmy Berry
2724af449c dist/ci/deploy: create submit request if none currently exists. 2017-10-06 17:11:09 -05:00
Jimmy Berry
4c8c478fca dist/ci/Dockerfile: include dup before in to handle major base changes. 2017-08-18 15:00:40 -05:00
Jimmy Berry
468fab2552 dist/ci/Dockerfile: drop hard-coded mirror now that Tumbleweed issues resolved. 2017-07-31 21:12:15 -05:00
Jimmy Berry
7581a2e9c4 dist/ci/Dockerfile: add obs-service-set_version based on changes made for Factory. 2017-07-19 17:21:15 -05:00
Jimmy Berry
8de99935bb dist/ci/deploy.obs.sh: include apiurl in general so email is used during service run. 2017-07-17 17:48:19 -05:00
Jimmy Berry
8df27b1de2 dist/ci/Dockerfile: include obs-service-{download_files,format_spec_file} for deployment. 2017-07-17 16:42:21 -05:00
Jimmy Berry
a00c96065a travis: include list email address in changes entry during deployment. 2017-07-13 21:28:12 -05:00
Jimmy Berry
62049d803c dist/ci/deploy.obs.sh: remove previous source. 2017-07-13 19:14:28 -05:00
Jimmy Berry
7df5bf27c7 travis: add deployment to OBS package on master branch commit. 2017-07-13 19:00:04 -05:00
Jimmy Berry
23fd8e19c9 dist/ci/Dockerfile: hard-code mirror until TW mirror issue resolved. 2017-07-13 17:09:13 -05:00
Jimmy Berry
04c8e091d4 travis: provide a separate job for build spec. 2017-07-13 17:09:13 -05:00