Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 1.0 #32

Merged
merged 23 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .circleci/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ FROM matthewjamesbriggs/mxci:v001
ENV BASEDIR="/mx"
WORKDIR $BASEDIR
COPY . .
CMD cmake . && make
RUN chmod +x .circleci/dockerfile-test-entrypoint.sh
CMD [".circleci/dockerfile-test-entrypoint.sh"]
66 changes: 66 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: matthewjamesbriggs/mxci:v001

resource_class: xlarge
working_directory: ~/mx

steps:
- checkout

# Download and cache dependencies
# - restore_cache:
# keys:
# - iqcache-{{ checksum ".circleci/cache-lock" }}-{{ checksum "iqtestdata/.cache-lock" }}
# # fallback to using the latest cache if no exact match is found
# - iqcache-

# - run: yarn install --cache-folder ~/yarn-cache

# - run:
# name: Install Git LFS
# command: |
# curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
# sudo apt-get update
# sudo apt-get install -y git-lfs openssh-client
# git lfs install
# mkdir -p ~/.ssh
# ssh-keyscan -H github.com >> ~/.ssh/known_hosts
# ssh git@github.com git-lfs-authenticate "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" download
# git lfs pull

# - save_cache:
# paths:
# - node_modules
# - iqtestdata
# - web/node_modules
# - iqbak/node_modules
# - iqshared/node_modules
# - ~/yarn-cache

# key: iqcache-{{ checksum ".circleci/cache-lock" }}-{{ checksum "iqtestdata/.cache-lock" }}

- run:
name: Cmake
command: |
[ "$(git rev-parse --abbrev-ref HEAD)" == "master" ] && \
cmake -DMX_BUILD_EXAMPLES=on -DMX_BUILD_TESTS=on -DMX_BUILD_CORE_TESTS=on . || \
cmake -DMX_BUILD_EXAMPLES=on -DMX_BUILD_TESTS=on -DMX_BUILD_CORE_TESTS=off .

- run:
name: Build
command: make

- run:
name: Run Examples
command: ./MxRead && ./MxWrite

- run:
name: Test
command: ./MxTest

# - store_artifacts:
# path: /tmp/coverage/
2 changes: 1 addition & 1 deletion .circleci/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ docker build \
-t mxtestimage \
"$MX_DIR"

docker run --name mxtestcontainer mxtestimage
docker run -it --name mxtestcontainer mxtestimage
46 changes: 46 additions & 0 deletions .circleci/dockerfile-test-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#! /bin/bash
set -e

sep() {
echo "----------------------------------------------------------------"
}

sep
echo "version info"
g++ --version
cmake --version
cat /etc/os-release

sep
cmake \
-DMX_BUILD_TESTS=on \
-DMX_BUILD_CORE_TESTS=off \
-DMX_BUILD_EXAMPLES=on \
.

sep
make -j12

sep
echo "running MxHide"
./MxHide
echo "success"

sep
echo "running MxWrite"
./MxWrite
echo "success"

sep
echo "running MxRead"
./MxRead
echo "success"

sep
echo "running MxTest"
./MxTest
echo "success"

echo ""
echo "done running script - success"
exit 0
Loading