aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2020-03-24 14:51:59 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-25 17:16:05 -0400
commit838c8723e314782c255011536126b95e9d6a97f9 (patch)
treeaaef6390df688a75bd6af1f3b6b1d33c07ab9e30 /.circleci
parentae3eb38592cb40011fd026d3c7c64ebc022bedca (diff)
downloadspmc-838c8723e314782c255011536126b95e9d6a97f9.tar.gz
Add .circleci/config.yml
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml41
-rwxr-xr-x.circleci/init.sh16
-rwxr-xr-x.circleci/install_reloc.sh8
-rwxr-xr-x.circleci/install_spm.sh5
-rwxr-xr-x.circleci/test_spm.sh13
5 files changed, 83 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..270bd76
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,41 @@
+version: 2.1
+
+jobs:
+ build:
+ docker:
+ - image: centos:7
+
+ environment:
+ MALLOC_CHECK_: 1
+
+ working_directory: ~/build
+
+ steps:
+ - run:
+ name: "Prepare"
+ command: |
+ yum install -y epel-release
+ yum install -y git
+
+ - checkout
+
+ - run:
+ name: "Initialize"
+ command: |
+ .circleci/init.sh
+
+ - run:
+ name: "Install reloc"
+ command: |
+ .circleci/install_reloc.sh
+
+
+ - run:
+ name: "Install spm"
+ command: |
+ .circleci/install_spm.sh
+
+ - run:
+ name: "Run tests"
+ command: |
+ .circleci/test_spm.sh
diff --git a/.circleci/init.sh b/.circleci/init.sh
new file mode 100755
index 0000000..81c5091
--- /dev/null
+++ b/.circleci/init.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+yum install -y \
+ make \
+ patchelf \
+ binutils \
+ curl-devel \
+ openssl-devel \
+ file \
+ which \
+ rsync \
+ tar \
+ cmake3 \
+ gcc \
+ gcc-c++ \
+ gcc-gfortran \
+ glibc-devel
diff --git a/.circleci/install_reloc.sh b/.circleci/install_reloc.sh
new file mode 100755
index 0000000..35945f3
--- /dev/null
+++ b/.circleci/install_reloc.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+git clone https://github.com/jhunkeler/reloc
+mkdir -p reloc/build
+pushd reloc/build
+ cmake3 -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
+ make install
+popd
+rm -rf reloc
diff --git a/.circleci/install_spm.sh b/.circleci/install_spm.sh
new file mode 100755
index 0000000..4aaea1c
--- /dev/null
+++ b/.circleci/install_spm.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+mkdir build
+cd build
+cmake3 -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug ..
+make install
diff --git a/.circleci/test_spm.sh b/.circleci/test_spm.sh
new file mode 100755
index 0000000..f70b60f
--- /dev/null
+++ b/.circleci/test_spm.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+set -e
+
+export SHELL=/bin/bash
+cd build
+
+set -x
+
+ctest3 -V
+
+spm --list
+
+spm --search zlib