Files
datasheet-server/.travis.yml
Joshua 5f4943d1d5 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
2018-12-14 15:59:12 +00:00

19 lines
346 B
YAML

language: node_js
node_js:
- stable
cache:
directories:
- node_modules
before_script:
- npm install -g yarn
- cp ./src/example.config.js ./src/config.js
install:
- yarn
script:
- 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