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

Proposed by Eric Snow
Status: Merged
Approved by: Eric Snow
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
Simon Poirier (community) Approve
Landscape 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.
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

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

Don't use the "build" target.

Revision history for this message
Simon Poirier (simpoir) wrote :

+1

review: Approve
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

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
=== added file '.travis.yml'
--- .travis.yml 1970-01-01 00:00:00 +0000
+++ .travis.yml 2017-04-20 22:11:37 +0000
@@ -0,0 +1,22 @@
1dist: trusty
2language: python
3python:
4 - "3.4"
5 - "3.5"
6 - "3.6"
7matrix:
8 include:
9 - python: 2.7
10 env: TARGET=check2
11 - python: 3.6
12 env: TARGET=flake8
13# XXX cache the installs?
14env:
15 - TARGET=check3
16install:
17 - pip install flake8
18 # These match "make depends"
19 - pip install twisted==16.4.0 mock==1.3.0 configobj==5.0.6 passlib=1.6.5
20 - pip install http://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz
21script:
22 - make $TARGET PYTHON=python$TRAVIS_PYTHON_VERSION
023
=== modified file 'Makefile'
--- Makefile 2017-04-10 15:23:31 +0000
+++ Makefile 2017-04-20 22:11:37 +0000
@@ -28,6 +28,7 @@
2828
29.PHONY: depends29.PHONY: depends
30depends: depends2 depends3 ## Install py2 and py3 dependencies.30depends: depends2 depends3 ## Install py2 and py3 dependencies.
31 sudo apt -y install python3-flake8
3132
32.PHONY: depends233.PHONY: depends2
33depends2:34depends2:
@@ -72,6 +73,10 @@
72pyflakes:73pyflakes:
73 -pyflakes `find landscape -name \*.py`74 -pyflakes `find landscape -name \*.py`
7475
76.PHONY: flake8
77flake8:
78 -flake8 `find landscape -name \*.py`
79
75clean:80clean:
76 -find landscape -name __pycache__ -exec rm -rf {} \;81 -find landscape -name __pycache__ -exec rm -rf {} \;
77 -find landscape -name \*.pyc -exec rm -f {} \;82 -find landscape -name \*.pyc -exec rm -f {} \;

Subscribers

People subscribed via source and target branches

to all changes: