Skip to content

Instantly share code, notes, and snippets.

@filipecifali
Created September 4, 2017 15:37
Show Gist options
  • Save filipecifali/cc30ab3ff48935e333423d26fe163009 to your computer and use it in GitHub Desktop.
Save filipecifali/cc30ab3ff48935e333423d26fe163009 to your computer and use it in GitHub Desktop.
Gitlab CI Dockerino Perl 5.10
image: perl:5.10
variables:
POSTGRES_INCLUDE: "/usr/include/postgresql"
POSTGRES_LIB: "/usr/lib/postgresql/9.4/lib"
APACHE_SRC: "/usr/src/apache_1.3.42/src"
DO_HTTPD: "0"
perl_lint_cgi:
script:
- curl https://cpanmin.us/ > /usr/bin/cpanm
- chmod +x /usr/bin/cpanm
- export PATH=/usr/sbin:/usr/bin:/sbin:/bin
- apt-get update -y -qq
- apt-get install postgresql-common -y -qq
- cp /usr/share/perl5/PgCommon.pm /usr/share/postgresql-common
- apt-get install libpq-dev libpq5 postgresql-common postgresql-client -y -qq
- export PERL5LIB=/usr/local/lib/perl5/5.10.1:/usr/local/lib/perl5/5.10.1/x86_64-linux:/usr/local/lib/perl5/x86_64-linux:/usr/local/lib/perl5
- export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- /usr/bin/cpanm "URI" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP::Simple" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "YAML" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "DBI::DBD" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Mysql" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Pg" --local-lib=/usr/local --notest --verbose --force
- /usr/bin/cpanm "DateTime" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Crypt::Beowulf" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Net" --local-lib=/usr/local --notest --verbose
- /usr/bin/cpanm "Net::DNS" --local-lib=/usr/local --notest --verbose
- wget https://archive.apache.org/dist/httpd/apache_1.3.42.tar.gz -O /usr/src/apache_1.3.42.tar.gz
- tar -xf /usr/src/apache_1.3.42.tar.gz -C /usr/src
- wget http://ftp.unicamp.br/pub/apache/perl/mod_perl-1.31.tar.gz -O /usr/src/mod_perl-1.31.tar.gz
- tar -xf /usr/src/mod_perl-1.31.tar.gz -C /usr/src
- /usr/local/bin/perl Makefile.PL && make && make install
- find . -name "*.cgi" -type f -print0 | xargs -n 1 -0 perl -c
allow_failure: true
perl_lint_pl:
script:
- curl https://cpanmin.us/ > /usr/bin/cpanm
- chmod +x /usr/bin/cpanm
- export PATH=/usr/sbin:/usr/bin:/sbin:/bin
- apt-get update -y -qq
- apt-get install postgresql-common -y -qq
- cp /usr/share/perl5/PgCommon.pm /usr/share/postgresql-common
- apt-get install libpq-dev libpq5 postgresql-common postgresql-client -y -qq
- export PERL5LIB=/usr/local/lib/perl5/5.10.1:/usr/local/lib/perl5/5.10.1/x86_64-linux:/usr/local/lib/perl5/x86_64-linux:/usr/local/lib/perl5
- export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- /usr/bin/cpanm "URI" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP::Simple" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "YAML" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "DBI::DBD" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Mysql" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Pg" --local-lib=/usr/local --notest --verbose --force
- /usr/bin/cpanm "DateTime" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Crypt::Beowulf" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Net" --local-lib=/usr/local --notest --verbose
- /usr/bin/cpanm "Net::DNS" --local-lib=/usr/local --notest --verbose
- wget https://archive.apache.org/dist/httpd/apache_1.3.42.tar.gz -O /usr/src/apache_1.3.42.tar.gz
- tar -xf /usr/src/apache_1.3.42.tar.gz -C /usr/src
- wget http://ftp.unicamp.br/pub/apache/perl/mod_perl-1.31.tar.gz -O /usr/src/mod_perl-1.31.tar.gz
- tar -xf /usr/src/mod_perl-1.31.tar.gz -C /usr/src
- /usr/local/bin/perl Makefile.PL && make && make install
- find . -name "*.pl" -type f -print0 | xargs -n 1 -0 perl -c;
allow_failure: true
perl_lint_cfg:
script:
- curl https://cpanmin.us/ > /usr/bin/cpanm
- chmod +x /usr/bin/cpanm
- export PATH=/usr/sbin:/usr/bin:/sbin:/bin
- apt-get update -y -qq
- apt-get install postgresql-common -y -qq
- cp /usr/share/perl5/PgCommon.pm /usr/share/postgresql-common
- apt-get install libpq-dev libpq5 postgresql-common postgresql-client -y -qq
- export PERL5LIB=/usr/local/lib/perl5/5.10.1:/usr/local/lib/perl5/5.10.1/x86_64-linux:/usr/local/lib/perl5/x86_64-linux:/usr/local/lib/perl5
- export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- /usr/bin/cpanm "URI" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "LWP::Simple" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "YAML" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "DBI::DBD" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Mysql" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Pg" --local-lib=/usr/local --notest --verbose --force
- /usr/bin/cpanm "DateTime" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Crypt::Beowulf" --local-lib=/usr/local --notest --quiet
- /usr/bin/cpanm "Net" --local-lib=/usr/local --notest --verbose
- /usr/bin/cpanm "Net::DNS" --local-lib=/usr/local --notest --verbose
- wget https://archive.apache.org/dist/httpd/apache_1.3.42.tar.gz -O /usr/src/apache_1.3.42.tar.gz
- tar -xf /usr/src/apache_1.3.42.tar.gz -C /usr/src
- wget http://ftp.unicamp.br/pub/apache/perl/mod_perl-1.31.tar.gz -O /usr/src/mod_perl-1.31.tar.gz
- tar -xf /usr/src/mod_perl-1.31.tar.gz -C /usr/src
- /usr/local/bin/perl Makefile.PL && make && make install
- find . -name "*.cfg" -type f -print0 | xargs -n 1 -0 perl -c;
allow_failure: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment