build(CI): Run build command before marking build as successful
@@ -15,7 +15,8 @@ script:
- npm run test:unit -- --coverage
# if SauceLabs variables are defined, build docs and run visual regression tests
- 'if [ -z "$SAUCE_ACCESS_KEY" ]; then true; else npm run docs; fi'
- - 'if [ -z "$SAUCE_ACCESS_KEY" ]; then true; else npm run test:visual; fi'
+ - 'if [ -z "$SAUCE_ACCESS_KEY" ]; then true; else travis_wait npm run test:visual; fi'
+ - npm run build
after_success:
# Upload code coverage to Codecov
@@ -24,7 +25,6 @@ after_success:
- 'if [ -z "$ARGOS_TOKEN" ]; then true; else argos upload test/screenshots/local -T "$ARGOS_TOKEN"; fi'
before_deploy:
- - npm run build
- ASSET_PATH=/thema/ npm run docs
deploy:
