update to CircleCI 2.0
This commit is contained in:
parent
6ba16ac4f6
commit
5d3e5f4cf1
24
.circleci/config.yml
Normal file
24
.circleci/config.yml
Normal file
@ -0,0 +1,24 @@
|
||||
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:
|
||||
- save_cache:
|
||||
key: dependency-cache
|
||||
path:
|
||||
- ~/cmake-3.11.0-Linux-x86_64
|
||||
- run:
|
||||
name: Update gcc and g++ to version 7.1
|
||||
command: |
|
||||
sudo add-apt-repository -y ppa:jonathonf/gcc-7.1
|
||||
sudo apt-get update
|
||||
sudo apt-get install gcc-7 g++-7
|
||||
- run:
|
||||
name: Build project
|
||||
command: |
|
||||
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
|
||||
cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j
|
16
appveyor.yml
16
appveyor.yml
@ -1,16 +0,0 @@
|
||||
# version: '{branch}-{build}'
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||
MSVC_GENERATOR: Visual Studio 15 2017
|
||||
MSVC_GENERATOR_SHORT: VS2017
|
||||
|
||||
shallow_clone: true
|
||||
|
||||
build_script:
|
||||
- cmd: |
|
||||
set PATH=%PATH%;C:\ProgramData\chocolatey\lib\make\tools
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
||||
msbuild projet_lzw.sln
|
24
circle.yml
24
circle.yml
@ -1,24 +0,0 @@
|
||||
version: 2
|
||||
|
||||
machine:
|
||||
environment:
|
||||
PATH: "/home/ubuntu/cmake-3.11.0-Linux-x86_64/bin:$PATH"
|
||||
CXX: g++-7
|
||||
|
||||
dependencies:
|
||||
cache_directories:
|
||||
- ~/cmake-3.11.0-Linux-x86_64
|
||||
pre:
|
||||
- sudo add-apt-repository -y ppa:jonathonf/gcc-7.1
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install gcc-7 g++-7
|
||||
override:
|
||||
- >
|
||||
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
|
||||
- cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j
|
Loading…
Reference in New Issue
Block a user