forked from NetsBlox/NetsBlox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (25 loc) · 927 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: node_js
cache:
directories:
- node_modules
env:
- MONGO_URI=mongodb://127.0.0.1:27017/netsblox-tests ENV=test DEBUG=netsblox:test*
services:
- mongodb
node_js:
- 12.14.1
before_install:
# Dependencies for zeromq
- sudo apt-get install -y software-properties-common && sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt install -y g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
install:
- npm install
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- sudo apt-get update && sudo apt-get install iproute2 -y
script:
- npm run test-ci && npm run test-client
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT