CyberNinjas / pam_aad

Azure Active Directory PAM Module
GNU General Public License v3.0
54 stars 19 forks source link

Continuous Integration #10

Closed Jnchi closed 5 years ago

Jnchi commented 5 years ago

Build Status

*Requires administrator privileges on the repository to enable.

.travis.yml

language: c

compiler:
  - clang
  - gcc

before_install:
  - sudo add-apt-repository ppa:ben-collins/libjwt
  - sudo apt-get update

script: autoreconf --install && ./configure && make

sudo: false

addons:
  apt:
    packages:
        - libjwt-dev
        - libpam0g-dev
        - libssl-dev

Travis CI - Building a C Project

Depends on: https://github.com/CyberNinjas/pam_aad/issues/11

Jnchi commented 5 years ago
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install libjwt-dev libpam0g-dev libssl-dev" failed and exited with 100 during .

Taken from: c-dev Fix typo in travis-ci config

See also: https://github.com/travis-ci/travis-ci/issues/7998

Jnchi commented 5 years ago
services:
  - docker
Jnchi commented 5 years ago
FROM ubuntu:18.04

WORKDIR /usr/src/cyberninjas/pam_aad
COPY . /usr/src/cyberninjas/pam_aad

RUN apt update && apt upgrade && \
    apt install -y automake autolibjwt-dev build-essential libpam0g-dev libssl-dev libtool