message: ci: enable format and lint checks in travis
diff: @@ -22,7 +22,17 @@ jobs:
  - stage: test
  name: "Unit tests and code checks"
  script:
  - - yarn nx affected --target=test --all --parallel
  + - |
  + if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
  + then
  + export NX_BASE=$(git rev-parse HEAD~1)
  + else
  + export NX_BASE=remotes/origin/$TRAVIS_BRANCH"
  + fi
  + echo "Base => $NX_BASE"
  + yarn format:check -- --base=$NX_BASE
  + yarn nx affected --target=lint --base=$NX_BASE --head=HEAD --parallel
  + yarn nx affected --target=test --all --parallel
  - stage: test
  name: "E2E tests"
  script: yarn e2e:ci
  