* Adding OptionsSchema generation This is to prevent repetitive fields from being copy and pasted improperly. * Move tslint to be after compile * Address PR issues
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
language: node_js
|
|
|
|
node_js:
|
|
- "8"
|
|
|
|
before_install:
|
|
# Do not modify. Required for GUI based tests: See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
|
|
- 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
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- sourceline: 'deb https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main'
|
|
key_url: 'https://packages.microsoft.com/keys/microsoft.asc'
|
|
packages:
|
|
- gdb
|
|
- g++-4.9
|
|
|
|
|
|
script:
|
|
# Download debugAdapters from an existing extension version. See TravisCI settings to set CPPTOOL_VERSION
|
|
- mkdir -p ~/.vscode/extensions/ms-vscode.cpptools-$CPPTOOL_VERSION
|
|
- wget https://github.com/Microsoft/vscode-cpptools/releases/download/$CPPTOOL_VERSION/cpptools.vsix -O ~/cpptools.vsix
|
|
- unzip ~/cpptools.vsix "extension/debugAdapters/*" -d ~/.
|
|
- mv ~/extension/debugAdapters ~/.vscode/extensions/ms-vscode.cpptools-$CPPTOOL_VERSION/debugAdapters
|
|
# Build and then run tests
|
|
- cd Extension
|
|
- npm install
|
|
- npm run compile
|
|
- npm run tslint
|
|
# pr-check needs to run before test. test modifies package.json.
|
|
- npm run pr-check
|
|
- npm run test
|
|
# Dump integrationTest.log output
|
|
- find ~ -name "integrationTests.log" -type f -exec cat {} \;
|
|
|