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

Add a basic .travis.yml file for automated testing #7

Merged
merged 1 commit into from
May 3, 2014

Conversation

d0
Copy link
Contributor

@d0 d0 commented May 2, 2014

Perform some basic regression testing for the different modules of the virtualsmartcard repositories via Travis CI.

For now this only tries to build the different modules and doesn't perform any further tests. Also, the build of ccid and libnpa are commented out, since I couldn't get them to build. So there is lots of potential for improvement, but this can be used as a starting point.

If this pull request is accepted, testing has to be enabled for the virtualsmartcard repository in the Travis CI Account settings.

- cd pcsc-relay && autoreconf -vsi && ./configure && make && cd ..
# Build libnpa, which requires OpenPACE and OpenSC
- cd /tmp && git clone https://github.com/frankmorgner/openpace && cd openpace && autoreconf -vsi && ./configure --enable-openssl-install --prefix=$PREFIX && make install && cd $TRAVIS_BUILD_DIR
- cd npa/src/opensc && cp configure.ac.in configure.ac && autoreconf -vsi && ./configure --prefix=$PREFIX --enable-sm && make install && cd ../../..
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the different scripts guaranteed to be executed in the correct order (openpace before opensc before libnpa)? Don't they run in parallel?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The different steps of the script section are executed sequentially. You can see a successful run of the script here: https://travis-ci.org/d0/vsmartcard/builds/24280098

frankmorgner pushed a commit that referenced this pull request May 3, 2014
Add a basic .travis.yml file for automated testing
@frankmorgner frankmorgner merged commit fee0217 into frankmorgner:master May 3, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants