aboutsummaryrefslogblamecommitdiffstats
path: root/.circleci/config.yml
blob: 3467f2b19e38811a9ad0e79eef27409a030b0bb6 (plain) (tree)
1
2
3
4
5
6
7
8
9
          







                        
     
 
                   





















                                                                                  








                                                   
                                                                                                        



                                                                                     













                                                                         
 
































                                                                                
version: 2
workflows:
  version: 2
  test-workflow:
    jobs:
      - debian8_R15B03-1
      - centos6_20.2
      - alpine3.7_20.3

jobs:

  debian8_R15B03-1:
    docker:
      - image: debian:8
    environment:
      - _KERL_VSN: R15B03-1
      - KERL_CONFIGURE_DISABLE_APPLICATIONS: 'odbc'
    steps:
      - run: apt-get update && apt-get upgrade -y
      - run: apt-get install -y git curl build-essential libncurses-dev libssl-dev
      - checkout
      - run: ./kerl update releases
      - run:
          command: ./kerl build "$_KERL_VSN" "$_KERL_VSN"
          no_output_timeout: 45m
      - run: ./kerl install "$_KERL_VSN" "install_$_KERL_VSN"
      - run: ./kerl status
      - run: |
          set -x
          source $(./kerl path install_$_KERL_VSN)/activate
          erl -s crypto -s init stop
          kerl_deactivate
      - run: ./kerl delete installation $(./kerl path install_$_KERL_VSN)
      - run: ./kerl delete build "$_KERL_VSN"

  centos6_20.2:
    docker:
      - image: centos:6
    environment:
      - _KERL_VSN: 20.2
      - KERL_CONFIGURE_DISABLE_APPLICATIONS: 'odbc'
    steps:
      - run: yum -y update
      - run: yum -y install curl ncurses-devel openssl-devel make automake autoconf gcc gcc-c++ gcc-java
      - run: |
          yum -y install https://centos6.iuscommunity.org/ius-release.rpm
          # CircleCI checkout uses -B which isn't available in CentOS6's packaged git
          yum -y install git2u
      - checkout
      - run: ./kerl update releases
      - run:
          command: ./kerl build "$_KERL_VSN" "$_KERL_VSN"
          no_output_timeout: 45m
      - run: ./kerl install "$_KERL_VSN" "install_$_KERL_VSN"
      - run: ./kerl status
      - run: |
          set -x
          source $(./kerl path install_$_KERL_VSN)/activate
          erl -s crypto -s init stop
          kerl_deactivate
      - run: ./kerl delete installation $(./kerl path install_$_KERL_VSN)
      - run: ./kerl delete build "$_KERL_VSN"

  alpine3.7_20.3:
    docker:
      - image: alpine:3.7
    environment:
      - _KERL_VSN: 20.3
      - KERL_CONFIGURE_DISABLE_APPLICATIONS: odbc
      - KERL_BUILD_BACKEND: git
      - KERL_BUILD_DOCS: 'yes'
    steps:
      - run: apk update && apk upgrade
      - run: |
          apk add curl ca-certificates \
                  dpkg-dev dpkg \
                  gcc g++ libc-dev linux-headers make autoconf ncurses-dev tar \
                  openssl-dev unixodbc-dev lksctp-tools-dev \
                  lksctp-tools \
                  libxslt git
      - checkout
      - run: ./kerl update releases
      - run:
          command: |
            export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
            ./kerl build "$_KERL_VSN" "$_KERL_VSN"
          no_output_timeout: 45m
      - run: ./kerl install "$_KERL_VSN" "install_$_KERL_VSN"
      - run: ./kerl status
      - run: |
          set -x
          source $(./kerl path install_$_KERL_VSN)/activate
          erl -s crypto -s init stop
          kerl_deactivate
      - run: ./kerl delete installation $(./kerl path install_$_KERL_VSN)
      - run: ./kerl delete build "$_KERL_VSN"