<commit_before>#!/usr/bin/perl -w
use strict;

my $linux = $ENV{TRAVIS_OS_NAME} eq 'linux';

sub run {
	my $cmd = shift;
	print "\n$cmd\n";
	system $cmd		and warn("command failed: $cmd\n\n"), exit 1;
}

# install dependencies
if($linux) {
	run qq{sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y};
	run qq{sudo apt-get -qq update};
	run qq{sudo apt-get install -y libgmp-dev libglpk-dev libgsl0-dev cmake3 g++-4.9 g++-5 g++-6 g++-7};

	run qq{git clone https://github.com/conradsnicta/armadillo-code.git -b 7.800.x --depth 1};
	run qq{cd armadillo-code && ./configure && sudo make install};

} else {
	# on OSX we just install libqif via homebrew. This is useful to test by itself,
	# and also installs all dependencies needed for the actual build
	#
	run qq{rm -f /usr/local/include/c++};	# brew install will fail if this exists
	run qq{brew update};
	run qq{brew tap chatziko/tap};
	run qq{brew install --HEAD libqif};
	run qq{brew test --HEAD libqif};
}

# build for each compiler
my @cxx = $linux ? qw/g++-4.9 g++-5 g++-6 g++-7/ : qw/clang++/;
for(@cxx) {<commit_msg>.travis.pl: armadillo is now on gitlab<commit_after>#!/usr/bin/perl -w
use strict;

my $linux = $ENV{TRAVIS_OS_NAME} eq 'linux';

sub run {
	my $cmd = shift;
	print "\n$cmd\n";
	system $cmd		and warn("command failed: $cmd\n\n"), exit 1;
}

# install dependencies
if($linux) {
	run qq{sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y};
	run qq{sudo apt-get -qq update};
	run qq{sudo apt-get install -y libgmp-dev libglpk-dev libgsl0-dev cmake3 g++-4.9 g++-5 g++-6 g++-7};

	run qq{git clone https://gitlab.com/conradsnicta/armadillo-code.git -b 7.800.x --depth 1};
	run qq{cd armadillo-code && ./configure && sudo make install};

} else {
	# on OSX we just install libqif via homebrew. This is useful to test by itself,
	# and also installs all dependencies needed for the actual build
	#
	run qq{rm -f /usr/local/include/c++};	# brew install will fail if this exists
	run qq{brew update};
	run qq{brew tap chatziko/tap};
	run qq{brew install --HEAD libqif};
	run qq{brew test --HEAD libqif};
}

# build for each compiler
my @cxx = $linux ? qw/g++-4.9 g++-5 g++-6 g++-7/ : qw/clang++/;
for(@cxx) {
{'fraction_non_alphanumeric': 0.1601652134006425, 'fraction_numerical': 0.016521340064249657, 'mean_word_length': 3.5606694560669454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '439360', 'n_tokens_mistral': 906, 'n_tokens_neox': 876, 'n_words': 269}