This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yml
50 lines (44 loc) · 1.51 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.0-stretch-browsers
steps:
- checkout
- run:
name: Set up environment
command: |
echo "export USER=circleci" >> "${BASH_ENV}"
echo "export PATH=$HOME/.nix-profile/bin:$HOME/bin:$PATH" >> "${BASH_ENV}"
- run:
name: Install Bazel
command: |
set -x
export USER=circleci
VERSION=0.21.0
INSTALLER=bazel-$VERSION-installer-linux-x86_64.sh
wget https://github.com/bazelbuild/bazel/releases/download/$VERSION/$INSTALLER
chmod +x $INSTALLER
./$INSTALLER --user
- run:
name: Install Nix
command: |
sudo mkdir -p /nix
sudo chown -R circleci /nix
NIX_RELEASE=2.1.3
ARCH=x86_64
wget https://nixos.org/releases/nix/nix-${NIX_RELEASE}/nix-${NIX_RELEASE}-${ARCH}-linux.tar.bz2
tar -xjvf nix-${NIX_RELEASE}-${ARCH}-linux.tar.bz2
mkdir -p /nix/var/nix/profiles/per-user/${USER}
nix-${NIX_RELEASE}-${ARCH}-linux/install
- run:
name: Build and test
command: bazel test --test_output=errors --jobs=2 //...
- run:
name: Test some third-party packages
command: |
bazel build --jobs=2 \
$(for p in $(cat test-packages.txt)
do
echo @haskell_$p//...
done)