Skip to content
Snippets Groups Projects
Commit 5da23038 authored by BaM's avatar BaM
Browse files

better

parent 612f2d2d
No related branches found
No related tags found
No related merge requests found
version: 2 image: rootproject/root-ubuntu16:6.10
before_script:
- rapt-get -qq update; apt-get -y install git openssh-client
- vcheckout
- ./install clean-build
jobs: # # Test Jobs
# Build Cyclus # unit_test:
build: # docker:
docker: # - image: rootproject/root-ubuntu16
- image: rootproject/root-ubuntu16 # working_directory: ~/CLASS
working_directory: ~/CLASS # steps:
steps: # - run:
# Ensure your image has git (required by git to clone via SSH) so that CircleCI can clone your repo # name: save SHA to a file
- run: apt-get -qq update; apt-get -y install git openssh-client # command: echo $CIRCLE_SHA1 > .circle-sha
- checkout # - restore_cache:
- run: # keys:
name: Build Docker Image # - v1-repo-{{ checksum ".circle-sha" }}
command: | # - run:
./install clean-build # name: Unit Test
- run: # command: ./install gtest; exit $?
name: save SHA to a file #
command: echo $CIRCLE_SHA1 > .circle-sha #
- save_cache:
key: v1-repo-{{ checksum ".circle-sha" }}
paths:
- /root
# Test Jobs
unit_test:
docker:
- image: rootproject/root-ubuntu16
working_directory: ~/CLASS
steps:
- run:
name: save SHA to a file
command: echo $CIRCLE_SHA1 > .circle-sha
- restore_cache:
keys:
- v1-repo-{{ checksum ".circle-sha" }}
- run:
name: Unit Test
command: ./install gtest; exit $?
workflows:
version: 2 #Needed ?? (already on the top of the file)
build_and_test:
jobs:
# On a PR // All Branch
- build
- unit_test:
requires:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment