Skip to content

Commit

Permalink
Use a VM in CI instead of docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Oct 27, 2021
1 parent 6ea3c59 commit 1902323
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,36 @@ version: 2.0

jobs:
build:
docker:
- image: fpco/stack-build:lts-16.8
machine:
image: ubuntu-2004:202107-02
steps:
- run: sudo apt-get update && sudo apt-get install -y curl git ssh unzip wget libtinfo-dev gcc make
- add_ssh_keys
- run:
name: Install z3
command: |
wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x64-ubuntu-16.04.zip
unzip z3-4.8.7-x64-ubuntu-16.04.zip
rm -f z3-4.8.7-x64-ubuntu-16.04.zip
cp z3-4.8.7-x64-ubuntu-16.04/bin/libz3.a /usr/local/lib
cp z3-4.8.7-x64-ubuntu-16.04/bin/z3 /usr/local/bin
cp z3-4.8.7-x64-ubuntu-16.04/include/* /usr/local/include
sudo cp z3-4.8.7-x64-ubuntu-16.04/bin/libz3.a /usr/local/lib
sudo cp z3-4.8.7-x64-ubuntu-16.04/bin/z3 /usr/local/bin
sudo cp z3-4.8.7-x64-ubuntu-16.04/include/* /usr/local/include
rm -rf z3-4.8.7-x64-ubuntu-16.04
z3 --version
- checkout
- restore_cache:
keys:
- stack-{{ checksum "stack.yaml" }}-{{ checksum "liquid-fixpoint.cabal" }}
- stack-{{ checksum "stack.yaml" }}
- stack-cache-v1-{{ checksum "stack.yaml" }}-{{ checksum "liquid-fixpoint.cabal" }}
- stack-cache-v1-{{ checksum "stack.yaml" }}
- run:
name: Dependencies
command: |
wget -qO- https://get.haskellstack.org/ | sudo sh
stack --no-terminal setup
stack --no-terminal build -j2 liquid-fixpoint --only-dependencies --test --no-run-tests
- save_cache:
key: stack-{{ checksum "stack.yaml" }}-{{ checksum "liquid-fixpoint.cabal" }}
key: stack-cache-v1-{{ checksum "stack.yaml" }}-{{ checksum "liquid-fixpoint.cabal" }}
paths:
- ~/.stack
- ./.stack-work
Expand All @@ -43,10 +45,9 @@ jobs:
command: |
mkdir -p /tmp/junit
stack --no-terminal test -j2 liquid-fixpoint:test --flag liquid-fixpoint:devel --test-arguments="--xml=/tmp/junit/main-test-results.xml":
stack --no-terminal haddock --flag liquid-fixpoint:devel
stack --no-terminal sdist
stack --no-terminal haddock --flag liquid-fixpoint:devel --test --no-run-tests --no-haddock-deps --haddock-arguments="--no-print-missing-docs"
# mkdir -p $CIRCLE_TEST_REPORTS/tasty
# cp -r tests/logs/cur $CIRCLE_TEST_REPORTS/tasty/log
- run:
name: Dist
command: stack sdist
command: stack --no-terminal sdist

0 comments on commit 1902323

Please sign in to comment.