summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-11-11 19:04:42 -0500
committerBen Gamari <ben@smart-cactus.org>2017-11-16 15:35:36 -0500
commit30fd528ed47ebc6d51defd16cabb0f3956816a41 (patch)
tree26753b4095bc2ba05d8bb85336effcebe6491150
parent626f1346fe9f1bc4763ba76b20dafe4560a23d93 (diff)
downloadhaskell-wip/circleci-ben.tar.gz
CircleCI: Try validating LLVM as wellwip/circleci-ben
-rw-r--r--.circleci/config.yml47
1 files changed, 45 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index cf660c074c..9dfe5257ac 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -29,6 +29,15 @@ aliases:
run:
name: Boot
command: ./boot
+ run:
+ name: Populate mk/build.mk
+ command: |
+ cat <<EOF >> mk/build.mk
+ BuildFlavour=$BUILD_FLAVOUR
+ ifneq "\$(BuildFlavour)" ""
+ include mk/flavours/$(BuildFlavour).mk
+ endif
+ EOF
- &configure_unix
run:
name: Configure
@@ -49,6 +58,10 @@ aliases:
run:
name: Test
command: make test
+ - &slowtest
+ run:
+ name: Full Test
+ command: make slowtest
- &bindist
run:
name: Create bindist
@@ -143,14 +156,43 @@ jobs:
- *make
- *test
+ "validate-x86_64-linux-llvm":
+ resource_class: xlarge
+ docker:
+ - image: haskell:8.2
+ environment:
+ <<: *buildenv
+ BUILD_FLAVOUR: perf-llvm
+ steps:
+ - run:
+ name: Install LLVM
+ command: |
+ apt-get update
+ apt-get install -y curl xz-utils
+ curl http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-x86_64-linux-gnu-debian8.tar.xz | tar -xJC ..
+ # See https://discuss.circleci.com/t/how-to-add-a-path-to-path-in-circle-2-0/11554/3
+ echo "export PATH=`pwd`/../clang+llvm-5.0.0-x86_64-linux-gnu-debian8/bin:\$PATH" >> $BASH_ENV
+ - run:
+ name: Verify that llc works
+ command: llc
+ - *precheckout
+ - checkout
+ - *prepare
+ - *submodules
+ - *boot
+ - *configure_unix
+ - *make
+ - *slowtest
+
workflows:
version: 2
validate:
jobs:
- - validate-x86_64-linux
+ #- validate-x86_64-linux
# FreeBSD disabled: https://github.com/haskell/unix/issues/102
# - validate-x86_64-freebsd
- - validate-x86_64-darwin
+ #- validate-x86_64-darwin
+ - validate-x86_64-linux-llvm
nightly:
triggers:
@@ -162,3 +204,4 @@ workflows:
- master
jobs:
- validate-x86_64-linux-unreg
+ - validate-x86_64-linux-llvm