Run all build steps in CI

This commit is contained in:
Daniel Gasienica 2018-05-07 15:53:20 -04:00
parent 15759f0db5
commit cb09da0f63
4 changed files with 7 additions and 6 deletions

View File

@ -2,16 +2,19 @@
# supports `.gitignore`: https://github.com/prettier/prettier/issues/2294
# Generated files
config/local-*.json
config/local.json
dist/**
js/components.js
js/libsignal-protocol-worker.js
js/libtextsecure.js
libtextsecure/components.js
libtextsecure/test/test.js
stylesheets/*.css
test/test.js
ts/**/*.js
ts/protobuf/*.js
ts/protobuf/*.d.ts
ts/protobuf/*.js
# Third-party files
components/**

View File

@ -7,11 +7,10 @@ dist: trusty
install:
- yarn install --frozen-lockfile
script:
- yarn transpile
- yarn generate
- yarn lint
- yarn test-node
- yarn nsp check
- yarn generate
- yarn prepare-beta-build
- $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bundleVersion='$TRAVIS_BUILD_NUMBER' --publish=never
- ./travis.sh

View File

@ -12,11 +12,10 @@ install:
- yarn install --frozen-lockfile
build_script:
- yarn transpile
- yarn generate
- yarn lint-windows
- yarn test-node
- yarn nsp check
- yarn generate
- node build\grunt.js
- type package.json | findstr /v certificateSubjectName > temp.json
- move temp.json package.json

View File

@ -15,7 +15,7 @@
"start": "electron .",
"grunt": "grunt",
"icon-gen": "electron-icon-maker --input=images/icon_1024.png --output=./build",
"generate": "npm run icon-gen && grunt",
"generate": "yarn icon-gen && yarn grunt",
"build": "build --config.extraMetadata.environment=$SIGNAL_ENV",
"build-release": "SIGNAL_ENV=production npm run build -- --config.directories.output=release",
"build-protobuf": "pbjs --target static-module --wrap commonjs --out ts/protobuf/SignalService.js protos/SignalService.proto && pbts --out ts/protobuf/SignalService.d.ts ts/protobuf/SignalService.js",