File: .travis.yml

package info (click to toggle)
node-marked 0.8.0%2Bds%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,948 kB
  • sloc: javascript: 3,640; sh: 16; makefile: 16
file content (45 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: node_js

jobs:
  fast_finish: true
  allow_failures:
    - stage: security scan 🔐

  include:
    - stage: unit tests 👩🏽‍💻
      script: npm run test:unit
      node_js: lts/*

    - stage: spec tests 👩🏽‍💻
      script: npm run test:specs
      node_js: lts/*
    - node_js: node

    - stage: lint ✨
      script: npm run test:lint
      node_js: lts/*

    - stage: build 🗜️
      script: |
        npm run build
        if ! git diff --quiet; then
          git config --global user.email "<>"
          git config --global user.name "MarkedJS bot"
          git config credential.helper "store --file=.git/credentials"
          echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
          git commit -am '🗜️ build [skip ci]'
          git push origin HEAD:${TRAVIS_BRANCH}
        fi
      node_js: lts/*
      if: branch = master AND type = push

    # - stage: security scan 🔐
    #   script: npm run test:redos
    #   node_js: lts/*

cache:
  directories:
    - node_modules

git:
  depth: 3