GithubHelp home page GithubHelp logo

isabella232 / openvpn-windows-buildtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openvpn/openvpn-windows-buildtest

0.0 0.0 0.0 7 KB

Automated openvpn-build testing and snapshot publishing script

License: Other

Shell 100.00%

openvpn-windows-buildtest's Introduction

openvpn-windows-buildtest

Introduction

This is an automated openvpn-build testing and snapshot publishing script, which does three things:

  • Tests building OpenVPN "master" and "release/2.3" branches with openvpn-build on every commit
  • Publishes the produced installers automatically
  • Emails build successes and failures to one or more addresses

The script is based on polling a Git repository, but a build is only triggered when there are new commits.

Requirements and configuration

First make sure you can successfully build using openvpn-build - otherwise this script will fail miserably.

The email feature requires properly configured MTA such as postfix, as the script will send emails using the "mail" program. Using heirloom-mailx or similar is probably an option also.

The publishing feature requires allowing passwordless SSH key login to the target webserver, plus proper directory permissions to allow uploads.

Right now it is assumed that all builds are signed and that a signing certificate is available as a (pfx) file. The signing step could be made optional.

After the requirements are taken care of, copy the .example configuration files to vars, vars.2.3 and vars.master, and adapt them to your environment.

Note that the script fetches openvpn-build at build time. You can use your own fork by modifying OPENVPN_BUILD_GIT_URL in the vars file.

Usage

You can run the script with

$ ./build.sh config-file

Where config-file is based on vars.2.3.example or vars.master.example. The name of the file as such is irrelevant. You can customize the behavior of the script by overriding variables, e.g.

$ [email protected] FORCE=true ./build.sh vars.master

The command forces a build of Git "master" and sends the report to [email protected].

To automate the script add entries to cron, e.g.

05 * * * * cd /home/john/openvpn-windows-buildtest && ./build.sh vars.2.3
35 * * * * cd /home/john/openvpn-windows-buildtest && ./build.sh vars.master

License

This program has been licensed under the BSD license. See the file LICENSE for details.

openvpn-windows-buildtest's People

Contributors

mattock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.