Merge lp:~ericsnowcurrently/landscape-client/travis-config into lp:~landscape/landscape-client/trunk

Proposed by Eric Snow on 2017-04-20
Status: Merged
Approved by: Eric Snow on 2017-04-20
Approved revision: 1022
Merged at revision: 1021
Proposed branch: lp:~ericsnowcurrently/landscape-client/travis-config
Merge into: lp:~landscape/landscape-client/trunk
Diff against target: 49 lines (+27/-0)
2 files modified
.travis.yml (+22/-0)
Makefile (+5/-0)
To merge this branch: bzr merge lp:~ericsnowcurrently/landscape-client/travis-config
Reviewer Review Type Date Requested Status
Landscape Builder test results Approve on 2017-04-20
Simon Poirier 2017-04-20 Approve on 2017-04-20
Landscape 2017-04-20 Pending
Review via email: mp+322893@code.launchpad.net

Commit message

Add a travis CI config file.

Description of the change

Add a travis CI config file.'

To post a comment you must log in.
review: Abstain (executing tests)

Command: TRIAL_ARGS=-j4 make ci-check
Result: Fail
Revno: 1021
Branch: lp:~ericsnowcurrently/landscape-client/travis-config
Jenkins: https://ci.lscape.net/job/latch-test-xenial/3879/

review: Needs Fixing (test results)
1022. By Eric Snow on 2017-04-20

Don't use the "build" target.

Simon Poirier (simpoir) wrote :

+1

review: Approve
review: Abstain (executing tests)

Command: TRIAL_ARGS=-j4 make ci-check
Result: Success
Revno: 1022
Branch: lp:~ericsnowcurrently/landscape-client/travis-config
Jenkins: https://ci.lscape.net/job/latch-test-xenial/3880/

review: Approve (test results)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file '.travis.yml'
2--- .travis.yml 1970-01-01 00:00:00 +0000
3+++ .travis.yml 2017-04-20 22:11:37 +0000
4@@ -0,0 +1,22 @@
5+dist: trusty
6+language: python
7+python:
8+ - "3.4"
9+ - "3.5"
10+ - "3.6"
11+matrix:
12+ include:
13+ - python: 2.7
14+ env: TARGET=check2
15+ - python: 3.6
16+ env: TARGET=flake8
17+# XXX cache the installs?
18+env:
19+ - TARGET=check3
20+install:
21+ - pip install flake8
22+ # These match "make depends"
23+ - pip install twisted==16.4.0 mock==1.3.0 configobj==5.0.6 passlib=1.6.5
24+ - pip install http://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz
25+script:
26+ - make $TARGET PYTHON=python$TRAVIS_PYTHON_VERSION
27
28=== modified file 'Makefile'
29--- Makefile 2017-04-10 15:23:31 +0000
30+++ Makefile 2017-04-20 22:11:37 +0000
31@@ -28,6 +28,7 @@
32
33 .PHONY: depends
34 depends: depends2 depends3 ## Install py2 and py3 dependencies.
35+ sudo apt -y install python3-flake8
36
37 .PHONY: depends2
38 depends2:
39@@ -72,6 +73,10 @@
40 pyflakes:
41 -pyflakes `find landscape -name \*.py`
42
43+.PHONY: flake8
44+flake8:
45+ -flake8 `find landscape -name \*.py`
46+
47 clean:
48 -find landscape -name __pycache__ -exec rm -rf {} \;
49 -find landscape -name \*.pyc -exec rm -f {} \;

Subscribers

People subscribed via source and target branches

to all changes: