fack2 / attention-training

Attention training is a project that helps neuro-diverse people diagnose their specific type of ADHD and provides guidance to them.
MIT License
0 stars 2 forks source link

BUG: update travis code to test node and react packages. #25

Closed FarahZaqout closed 5 years ago

FarahZaqout commented 5 years ago

Our latest change requires us to update the travis CI configs.

How it works:

We add an env key in the travis config to do two different builds

These two directories will instruct travis to run two different jobs -one for the client and one for the server

In the script key, we give travis instruction of what to do in each build.

The travis file should look like this

language: node_js
node_js:
- "node"
env:
  - BUILD_DIR=client
  - BUILD_DIR=server

script:  
  - if [ "$BUILD_DIR" = "client" ]; then cd $BUILD_DIR && npm install && npm run build; fi 
  - if [ "$BUILD_DIR" = "server" ]; then cd $BUILD_DIR && npm install; fi

Don't copy anything that isn't clear to you. Ask me anything.