Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create testing images for easier travis tests #2

Open
btkostner opened this issue Aug 17, 2017 · 1 comment
Open

Create testing images for easier travis tests #2

btkostner opened this issue Aug 17, 2017 · 1 comment

Comments

@btkostner
Copy link
Contributor

btkostner commented Aug 17, 2017

Having a travis file like this sucks. We should have a loki-travis image that contains a script to install the packages and run the build system. That way we can update tests without having to update all of the repositories. Plus, it cleans up the travis file quite a bit.

language: generic

services:
 - docker

env:
 - DEPENDENCY_PACKAGES="appstream cmake desktop-file-utils libcanberra-dev libgdk-pixbuf2.0-dev libgranite-dev valac"

install:
 - docker pull elementary/docker:loki
 - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make all test"
 - docker pull elementary/docker:loki-unstable
 - docker run -v "$PWD":/tmp/build-dir elementary/docker:loki-unstable /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && cmake . && env CTEST_OUTPUT_ON_FAILURE=true make all test"

script:
 - echo BUILDS PASSED

Ultimately we should be able to do something like this:

language: generic

services:
 - docker

env:
 - TRAVIS_PACKAGES="libcanberra-dev libgdk-pixbuf2.0-dev libgranite-dev valac"

before_install:
 - env | grep "^TRAVIS" > .env

install:
 - docker pull elementary/docker:loki-travis
 - docker pull elementary/docker:loki-unstable-travis

script:
 - docker run --env-file .env -v "$PWD":/tmp/travis elementary/docker:loki-travis
 - docker run --env-file .env -v "$PWD":/tmp/travis elementary/docker:loki-unstable-travis
@danirabbit
Copy link
Member

@btkostner is this satisfied by @kgrubb's recent PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants