use all available cpu cores by default (#2511)

Use all available cores by default. sets -N rts flag by default. Can be disabled by
setting the `GHCRTS` env variable to `-N1`.
This commit is contained in:
Vamshi Surabhi 2019-07-12 10:55:15 +05:30 committed by Shahidh K Muhammed
parent f20b12664c
commit 66a2f33fa9
2 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,8 @@ refs:
- run:
name: Run Python tests
environment:
# hpc report seems to fail with the default -N
GHCRTS: -N1
HASURA_GRAPHQL_DATABASE_URL: 'postgres://gql_test:@localhost:5432/gql_test'
HASURA_GRAPHQL_DATABASE_URL_2: 'postgres://gql_test:@localhost:5432/gql_test2'
GRAPHQL_ENGINE: '/build/_server_output/graphql-engine'
@ -399,6 +401,7 @@ jobs:
- image: hasura/graphql-engine-console-builder:v0.3
environment:
CYPRESS_KEY: 983be0db-0f19-40cc-bfc4-194fcacd85e1
GHCRTS: -N1
- image: circleci/postgres:10-alpine-postgis
environment:
POSTGRES_USER: gql_test

View File

@ -364,3 +364,4 @@ executable graphql-engine
-Wincomplete-uni-patterns
-Wredundant-constraints
-threaded -rtsopts
-with-rtsopts=-N