Skip to content

Commit

Permalink
Feature/extra ci (#184)
Browse files Browse the repository at this point in the history
* Add arch-llvm and centos builders

* Fix arch llvm builder to not wait for I/O

* Run tests after completion of build (hopefully)

* Update CentOS to devtoolset-8 to fill coverage gap

* Test manual deployment

* Add FreeBSD builder, probably

* Disable freebsd builder and fix arch tests

* Update documentation and prepare for first merge

* Use environment variables for declarations

* Environment variables attempt 2

* Environment variables: Episode III

* Environment variables: Episode IV

* Environment variables: Episode V

* Environment variables: Episode VI

* Environment variables: Episode VI

* Environment variables: Episode VII

* Environment variables: Episode VIII

* Environment variables: Episode IX

* Disable FSI CI on Windows

* Disable FSI on VS2017 and VS2015 to test builders

* FreeBSD attempt #2

* Revert "FreeBSD attempt #2"

This reverts commit c9483ec.

* Add ubuntu builder

* The ubuntu builder breaks things?

* Ubuntu builder commit #3

* More ubuntu builder error detail

* Maybe the entrypoint is bad?

* It was the environment. Fix packages now

* Ubuntu is frustrating

* Missed a tar command

* Ubuntu uses bad python

* Add anaconda deployment

* Fix wrong builder OS in deploy

* conda-build should probably use mkdir -p

* Arch docker is too big

* Add macOS Builder

* macOS doesn't have wget

* macOS has wget again, blaze too...

* Apparently BLAZE_DIR is not what I thought it was
  • Loading branch information
thepianoboy committed Sep 12, 2019
1 parent 82acd45 commit ca69848
Showing 1 changed file with 52 additions and 5 deletions.
57 changes: 52 additions & 5 deletions contrib/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stages:
- deploy

variables:
CHRONO_LINUX_SHARED: "-DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=TRUE
CHRONO_UNIX_SHARED: "-DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=TRUE
-DBUILD_BENCHMARKING=TRUE -DENABLE_MODULE_POSTPROCESS=TRUE
-DENABLE_MODULE_PYTHON=TRUE -DENABLE_MODULE_COSIMULATION=FALSE
-DENABLE_MODULE_IRRLICHT=TRUE -DENABLE_MODULE_VEHICLE=TRUE
Expand Down Expand Up @@ -41,7 +41,7 @@ linux:arch-gcc:build:
extends: .archlinux
script:
- cd build
- cmake ../ $CHRONO_LINUX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
- cmake ../ $CHRONO_UNIX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
-DENABLE_MODULE_FSI=TRUE -DCMAKE_C_COMPILER=/usr/bin/gcc
-DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCUDA_HOST_COMPILER=/usr/bin/gcc-8
-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
Expand Down Expand Up @@ -101,7 +101,7 @@ linux:arch-llvm:build:
script:
- pacman -S --noconfirm llvm clang openmp
- cd build
- cmake ../ $CHRONO_LINUX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
- cmake ../ $CHRONO_UNIX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
-DENABLE_MODULE_FSI=TRUE -DCMAKE_C_COMPILER=/usr/bin/clang
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCUDA_HOST_COMPILER=/usr/bin/gcc-8
-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3
Expand Down Expand Up @@ -172,7 +172,7 @@ linux:centos:build:
extends: .centos
script:
- cd build
- cmake ../ $CHRONO_LINUX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
- cmake ../ $CHRONO_UNIX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
-DCMAKE_C_COMPILER=/opt/rh/devtoolset-8/root/usr/bin/gcc
-DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-8/root/usr/bin/g++
# -DCUDA_HOST_COMPILER=/opt/rh/devtoolset-8/root/usr/bin/gcc
Expand Down Expand Up @@ -217,13 +217,16 @@ linux:centos:test:
- git submodule update
- mkdir -p build

#----------------#
# Ubuntu Builder #
#----------------#

linux:ubuntu1804:build:
stage: build
extends: .ubuntu
script:
- cd build
- cmake ../ $CHRONO_LINUX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
- cmake ../ $CHRONO_UNIX_SHARED -DENABLE_MODULE_DISTRIBUTED=TRUE
-DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++
-DPYTHON_EXECUTABLE=/usr/bin/python3
- make -j 8
Expand Down Expand Up @@ -386,6 +389,50 @@ windows:vs2015:build:
- build/


#----------------#
# macOS Builders #
#----------------#

.macos:
tags:
- macos
before_script:
- uname -a
- git submodule init
- git submodule update
- mkdir -p build

macos:highsierra:build:
stage: build
extends: .macos
script:
- cd build
- cmake ../ $CHRONO_UNIX_SHARED -DENABLE_MODULE_DISTRIBUTED=FALSE
-DENABLE_MODULE_FSI=FALSE -DCMAKE_C_COMPILER=$(which clang)
-DCMAKE_CXX_COMPILER=$(which clang++)
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations -Xpreprocessor -fopenmp -lomp -Wno-unused-command-line-argument"
-DUSE_PARALLEL_CUDA=FALSE -DCUDA_NVCC_FLAGS=-std=c++11
-DEIGEN3_INCLUDE_DIR=/usr/local/include/eigen3
-DBLAZE_DIR=/usr/local/include
- make -j 3
artifacts:
expire_in: 60m
paths:
- build/


macos:highsierra:test:
stage: test
needs: ["macos:highsierra:build"]
extends: .macos
script:
- cd build
- make test
dependencies: ["macos:highsierra:build"]




#-----------------#
# FreeBSD Builder #
#-----------------#
Expand Down

0 comments on commit ca69848

Please sign in to comment.