Browse Source

Add parallel test processors (#7215)

Yamagishi Kazutoshi 7 months ago
parent
commit
b8f0cfd6e3
2 changed files with 4 additions and 5 deletions
  1. 2
    5
      .circleci/config.yml
  2. 2
    0
      .env.test

+ 2
- 5
.circleci/config.yml View File

@@ -6,13 +6,10 @@ aliases:
6 6
       - image: circleci/ruby:2.5.1-stretch-node
7 7
         environment: &ruby_environment
8 8
           BUNDLE_APP_CONFIG: ./.bundle/
9
-          RAILS_ENV: test
10
-          NODE_ENV: test
11 9
           DB_HOST: localhost
12 10
           DB_USER: root
13
-          LOCAL_DOMAIN: cb6e6126.ngrok.io
14
-          LOCAL_HTTPS: true
15
-          PARALLEL_TEST_PROCESSORS: 2
11
+          RAILS_ENV: test
12
+          PARALLEL_TEST_PROCESSORS: 4
16 13
           ALLOW_NOPAM: true
17 14
     working_directory: ~/projects/mastodon/
18 15
 

+ 2
- 0
.env.test View File

@@ -1,3 +1,5 @@
1
+# Node.js
2
+NODE_ENV=test
1 3
 # Federation
2 4
 LOCAL_DOMAIN=cb6e6126.ngrok.io
3 5
 LOCAL_HTTPS=true