UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

48 lines (47 loc) 1.39 kB
sudo: false language: node_js dist: focal services: - xvfb before_install: - ./firefox-allow-popups.sh # On the line below, you’ll see the canjs-not-master keys being used only for master builds. This is correct. Unfortunately, the username can’t be changed and we’ve already hit the max number of allowed Sauce Labs accounts. - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY_NOT_MASTER SAUCE_USERNAME=$SAUCE_USERNAME_NOT_MASTER; fi - echo "Sauce Labs username is $SAUCE_USERNAME" - | if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^docs)|(^demos)/' then echo "Only docs were updated, skipping tests." exit fi - "echo 'This is running'" after_install: - "echo 'Install has finished'" matrix: include: - node_js: 14 env: TEST_SUITE=sauce-labs addons: sauce_connect: true hosts: canjs.test - node_js: 14 env: TEST_SUITE=development addons: firefox: latest - node_js: 14 env: TEST_SUITE=production addons: firefox: latest - node_js: 14 env: TEST_SUITE=builders addons: firefox: latest - node_js: 14 env: TEST_SUITE=global-build addons: firefox: latest script: - "npm run test-$TEST_SUITE" before_script: - npm run http-server & - sleep 2