########################################################################################## # The engine-x Customize file classifications. # # Results from files under any classifier will be excluded from LGTM # # statistics. # ########################################################################################## ########################################################################################## # Use the `path_classifiers` block to define changes to the default classification of # # files. # ########################################################################################## path_classifiers: test: - tests library: - external ######################################################################################### # Use the `queries` block to change the default display of query results. # ######################################################################################### queries: # Start by hiding the results of all queries. - exclude: "external" ######################################################################################### # Define changes to the default code extraction process. # # Each block configures the extraction of a single language, and modifies actions in a # # named step. Every named step includes automatic default actions, # # except for the 'prepare' step. The steps are performed in the following sequence: # # prepare # # after_prepare # # configure (C/C++ only) # # before_index # # index # ########################################################################################## ######################################################################################### # Environment variables available to the steps: # ######################################################################################### # LGTM_SRC # The root of the source tree. # LGTM_WORKSPACE # An existing (initially empty) folder outside the source tree. # Used for temporary download and setup commands. ######################################################################################### # Use the extraction block to define changes to the default code extraction process # # for one or more languages. The settings for each language are defined in a child # # block, with one or more steps. # ######################################################################################### extraction: # Define settings for C/C++ analysis ##################################### cpp: # Add an `after-prepare` step if you need to run commands after the prepare step. # Each command should be listed on a separate line. # This step is useful for C/C++ analysis where you want to prepare the environment # for the `configure` step without changing the default behavior for that step. after_prepare: - mkdir -p $LGTM_WORKSPACE/latest-gcc-symlinks - ln -s /usr/bin/g++-6 $LGTM_WORKSPACE/latest-gcc-symlinks/g++ - ln -s /usr/bin/gcc-6 $LGTM_WORKSPACE/latest-gcc-symlinks/gcc - export PATH=$LGTM_WORKSPACE/latest-gcc-symlinks:$PATH - export GNU_MAKE=make - export GIT=true - export BUILD_TARGET=linux - export TRAVIS_OS_NAME=linux - export TRAVIS_PULL_REQUEST=true # The `configure` step generates build configuration files which the `index` step # then uses to build the codebase. configure: command: - cd $LGTM_SRC - tools/travis-scripts/before-install.sh # The `index` step builds the code and extracts information during the build # process. index: # Override the autobuild process by specifying a list of custom build commands # to use instead. build_command: - cd $LGTM_SRC - tools/travis-scripts/run-script.sh