mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 21:38:32 +03:00
new server test with precommit hook to secure .env files, set up CI environment (#5)
* new server test with precommit hook to secure .env files, set up CI environment (#3) * [TESTS] added all registered routes to api server test * [WIP] abstracting config to env where it makes sense, refactoring elsewhere, adding more tests * [WIP] fixed tests so they fail as expected * [WIP] * [DEBUG] fixed issues with the env configuration, added correct tests * [MISC] env didn't get readded on last precommit * [TESTS] added longer wait time for server as sometimtimes tests fail arbitrarily
This commit is contained in:
19
.travis.yml
19
.travis.yml
@@ -1,15 +1,18 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "stable"
|
||||
- stable
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- node_modules
|
||||
before_script:
|
||||
- npm install -g yarn
|
||||
- cp ./src/example.config.js ./src/config.js
|
||||
- npm install -g yarn
|
||||
- cp ./src/example.config.js ./src/config.js
|
||||
install:
|
||||
- yarn
|
||||
- yarn
|
||||
script:
|
||||
- yarn build
|
||||
- yarn lint
|
||||
- yarn test
|
||||
- yarn build
|
||||
- yarn lint
|
||||
- yarn test
|
||||
before_install:
|
||||
- openssl aes-256-cbc -K $encrypted_4f23b46f1ec6_key -iv $encrypted_4f23b46f1ec6_iv
|
||||
-in .env.enc -out .env -d
|
||||
|
||||
Reference in New Issue
Block a user