Skip to content

Commit

Permalink
Update travis config to work with the changed names and paths.
Browse files Browse the repository at this point in the history
Also turned off a random check that got introduced that's due to be disabled as it's too noisy
(although maybe we consider fixing these if that's possible?)
eslint/eslint#12599
Also bumped the local eslint version as it's behind what gets installed by travis.
  • Loading branch information
jackodsteel committed Dec 4, 2019
1 parent b57c3c4 commit 7b52b01
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 213 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Expand Up @@ -26,3 +26,5 @@ rules:
- error
prefer-const:
- error
require-atomic-updates:
- off
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -19,13 +19,13 @@ install:
script:
- npm run lint
- black --diff --check ./test
- ./wait-for-api || { docker ps; docker logs cacophony-api; exit 1; }
- ./wait-for-api || { docker ps; docker logs cacophony-api_server_1; exit 1; }
- cd test
- pytest --log-api-on-fail
- cd ..
# Apply migration undo and redo to test undo migration
- docker exec -it cacophony-api /app-isolated/node_modules/.bin/sequelize db:migrate:undo --config /app-isolated/config/app_test_default.js --migrations-path /app-isolated/migrations
- docker exec -it cacophony-api /app-isolated/node_modules/.bin/sequelize db:migrate:undo --config /app-isolated/config/app_test_default.js --migrations-path /app-isolated/migrations
- docker exec -it cacophony-api_server_1 /app/node_modules/.bin/sequelize db:migrate:undo --config /app/config/app_test_default.js --migrations-path /app/migrations
- docker exec -it cacophony-api_server_1 /app/node_modules/.bin/sequelize db:migrate:undo --config /app/config/app_test_default.js --migrations-path /app/migrations

before_deploy:
- version=${TRAVIS_TAG/v/}
Expand Down

0 comments on commit 7b52b01

Please sign in to comment.