Commit d5820c55 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

adding ci config

parent 814ddb95
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
image: docker:stable

stages:
  - build
  - push

docker build:
docker build_devel:
  stage: build
  only:
  - devel
  script:
  - cd docker/dev && docker build -t xacc/qcor-dev-ide . --no-cache
  - cd docker/ci/ubuntu1804/devel && docker build -t qcor/devel-ci . --no-cache

docker push:
  stage: push
docker build_master:
  stage: build
  only:
  - master
  script:
  - echo "$REGISTRY_PASSWORD" | docker login -u xacc --password-stdin
  - docker push xacc/qcor-dev-ide
  - docker system prune
  - docker rmi -f xacc/qcor-dev-ide
 No newline at end of file
  - cd docker/ci/ubuntu1804/master && docker build -t qcor/master-ci . --no-cache
+7 −0
Original line number Diff line number Diff line
from xacc/ubuntu:18.04
run git clone --recursive -b xacc-devel https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build \
    && cmake .. \
    && make -j$(nproc) install \
    && cd ../../ && git clone -b devel https://github.com/ornl-qci/qcor && cd qcor && mkdir build && cd build \
    && cmake .. -DXACC_DIR=~/.xacc -DQCOR_BUILD_TESTS=TRUE \
    && make -j$(nproc) install && ctest --output-on-failure
+7 −0
Original line number Diff line number Diff line
from xacc/ubuntu:18.04
run git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build \
    && cmake .. \
    && make -j$(nproc) install \
    && cd ../../ && git clone -b master https://github.com/ornl-qci/qcor && cd qcor && mkdir build && cd build \
    && cmake .. -DXACC_DIR=~/.xacc -DQCOR_BUILD_TESTS=TRUE \
    && make -j$(nproc) install && ctest --output-on-failure
 No newline at end of file