Browse Source

chore: Update CI script

Michael Bromley 6 years ago
parent
commit
0cb9d5c3a8
4 changed files with 19 additions and 556 deletions
  1. 4 4
      .travis.yml
  2. 2 1
      lerna.json
  3. 2 1
      package.json
  4. 11 550
      packages/core/yarn.lock

+ 4 - 4
.travis.yml

@@ -12,9 +12,9 @@ cache: yarn
 
 install:
   - yarn install
+  - yarn bootstrap
+  - cd admin-ui && yarn install
 
 script:
-  - cd admin-ui && yarn && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false
-  - cd ../server && yarn && yarn test
-  - yarn test:e2e
-  - cd ../admin-ui && yarn build --prod
+  - yarn test:all
+  - cd admin-ui && yarn build --prod

+ 2 - 1
lerna.json

@@ -3,5 +3,6 @@
     "packages/*"
   ],
   "version": "0.1.0-alpha.17",
-  "npmClient": "yarn"
+  "npmClient": "yarn",
+  "userWorkspaces": true
 }

+ 2 - 1
package.json

@@ -3,6 +3,7 @@
   "version": "0.1.0-alpha.17",
   "private": true,
   "scripts": {
+    "bootstrap": "lerna bootstrap",
     "docs:watch": "concurrently -n docgen,hugo,webpack -c green,blue,cyan \"yarn generate-api-docs && yarn generate-config-docs -w\" \"cd docs && hugo server\" \"cd docs && yarn webpack -w\"",
     "docs:build": "yarn generate-api-docs && yarn generate-config-docs && cd docs && yarn webpack --prod && hugo",
     "docs:deploy": "cd docs && yarn && cd .. && yarn docs:build",
@@ -21,7 +22,7 @@
     "test:common": "jest --config packages/common/jest.config.js",
     "test:core": "jest --config packages/core/jest.config.js",
     "test:e2e": "jest --config packages/core/e2e/config/jest-e2e.json --runInBand",
-    "test:admin-ui": "jest --config packages/core/e2e/config/jest-e2e.json --runInBand",
+    "test:admin-ui": "cd admin-ui && yarn test --watch=false --browsers=ChromeHeadlessCI --progress=false",
     "build": "lerna run build"
   },
   "devDependencies": {

File diff suppressed because it is too large
+ 11 - 550
packages/core/yarn.lock


Some files were not shown because too many files changed in this diff