FACG5 / unicornz

https://unicornz-app.herokuapp.com/
1 stars 1 forks source link

travis configration #60

Closed hshahwan closed 5 years ago

hshahwan commented 5 years ago

Travis can't check subdirectories unless we tell it to, so to can check the client's files add this.


language: node_js
node_js:
- "node"
env:
  - BUILD_DIR=client # here we define the subdirectory for travis as a global environment variable.

script:  
  - if [ "$BUILD_DIR" = "client" ]; then cd $BUILD_DIR && npm install && npm run build; fi  # this script lets travis go into it and run any scripts we tell it to in the subdirectory we just declared above. ```