mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-05 16:00:01 +01:00
* Split tests into separate Travis jobs with better labeling * format test browserification * more descriptive labels * combine grunt browserify of tests and the run of those tests
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
sudo: required
|
|
language: node_js
|
|
node_js:
|
|
- '8'
|
|
- '10'
|
|
env:
|
|
- CXX=g++-4.8
|
|
before_script:
|
|
- npm install grunt-cli -g # for "grunt build"
|
|
- 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
|
|
jobs:
|
|
include:
|
|
- name: "Base istanbul/tape node tests"
|
|
script: npm test
|
|
- name: "Benchmark tests"
|
|
script: npm run benchmark
|
|
- name: "Gif tests"
|
|
script: npm run gif-test
|
|
- name: "Browserify core tests and run"
|
|
script: grunt tests && npm run core-tests
|
|
- name: "Jasmine UI tests (mocked browser env)"
|
|
script: npm run test-ui
|
|
- name: "jest-puppeteer UI tests (full browser env)"
|
|
script: npm run test-ui-2
|
|
- name: "Grunt build test of dev environment"
|
|
script: grunt build
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
- xvfb # for tape-run
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get install xserver-xorg-dev libxext-dev libxi-dev
|
|
- sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev
|
|
install:
|
|
- export DISPLAY=':99.0' # for tape-run
|
|
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & # for tape-run
|
|
- npm install # for tape-run
|