lzw-assignment/.circleci/config.yml

28 lines
968 B
YAML
Raw Normal View History

2018-04-15 23:34:17 +00:00
version: 2
jobs:
build:
docker:
- image: circleci/buildpack-deps:16.04-curl-browsers
environment:
- PATH: "/home/ubuntu/cmake-3.11.0-Linux-x86_64/bin:$PATH"
- CXX: g++-7.1
steps:
2018-04-15 23:39:00 +00:00
- checkout
2018-04-15 23:34:17 +00:00
- save_cache:
2018-04-15 23:57:40 +00:00
key: dependency-cache
path: ~/cmake-3.11.0-Linux-x86_64
2018-04-15 23:56:11 +00:00
- run: sudo add-apt-repository -y ppa:jonathonf/gcc-7.1
- run: sudo apt-get update
- run: sudo apt-get install gcc-7 g++-7
2018-04-15 23:34:17 +00:00
- run:
name: Build project
command: |
2018-04-15 23:56:11 +00:00
if [ ! -d ~/cmake-3.11.0-Linux-x86_64 ]; then
echo "No cache - building CMake"
cd ~ && wget --quiet https://cmake.org/files/v3.11/cmake-3.11.0-Linux-x86_64.tar.gz && tar -xvf cmake-3.11.0-Linux-x86_64.tar.gz
else
echo "Cached CMake found"
ls -Ahl ~/cmake-3.11.0-Linux-x86_64
fi
2018-04-15 23:35:23 +00:00
cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j