summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 4f18b14af1eaae74387bc6325836441a610e4da6 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
branches:
  only:
    - master
    - /^\d\.\d\.\d$/

os: osx

language: node_js
node_js:
  - "15"

stages:
  - lint
  - build
  - test
  - release

before_install:
  - if [ $TRAVIS_OS_NAME == "linux" ]; then
      export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
      sh -e /etc/init.d/xvfb start;
      sleep 3;
    fi

install:
  - yarn

jobs:
  allow_failures:
    - os: linux
  include:
    - os: linux
      dist: xenial
    - stage: lint
      script: tslint -c tslint.json 'src/**/*.ts'
      os: linux
    - stage: build
      script: npm run vscode:prepublish
      os: linux
    - stage: test
      script: yarn cov
      os: osx
    - stage: release
      script:
        - yarn add vsce -D
        - vsce package
        - ls -alh
      os: linux
      deploy:
        - provider: releases
          api_key: $GITHUB_OAUTH_TOKEN
          file: "./doxdocgen-$TRAVIS_TAG.vsix"
          skip_cleanup: true
          on:
            tags: true
        - provider: script
          script: vsce publish -p $VSMARKETPLACE_ACCESS_TOKEN
          skip_cleanup: true
          on:
            tags: true

after_success:
  - ./publish_coverage.sh

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/87b3ab4176e6f9506c13
    on_success: always
    on_failure: always
    on_start: never