From d0a137ce94a1aeb9f42e875c9ac5619fa9050910 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Wed, 16 Oct 2019 14:23:19 +0300 Subject: [PATCH] Test: move travis boards outside of hardware header (#1943) * travis: move build flags tests outside of hardware header * mqtt: fix typo * travis: use files instead of bundling test cases into script * fixup! travis: use files instead of bundling test cases into script * fix variable expansion, remove custom h at the end * add ade7953 to sensors list * custom.h path as variable * shellcheck * fix printf syntax, silent again * fix bash 4.3 treating empty array as unset variable --- .travis.yml | 11 +- code/espurna/config/defaults.h | 53 ++++++++ code/espurna/config/dependencies.h | 15 +++ code/espurna/config/hardware.h | 206 ----------------------------- code/espurna/config/sensors.h | 21 +-- code/espurna/mqtt.ino | 2 +- code/platformio.ini | 19 +-- code/test/.gitignore | 1 + code/test/build/basic.h | 5 + code/test/build/emon.h | 10 ++ code/test/build/light_dimmer.h | 10 ++ code/test/build/light_my92xx.h | 11 ++ code/test/build/nondefault.h | 10 ++ code/test/build/secure_client.h | 2 + code/test/build/sensor.h | 23 ++++ code/test_build.sh | 39 ++++++ travis_script.sh | 11 ++ 17 files changed, 213 insertions(+), 236 deletions(-) create mode 100644 code/test/.gitignore create mode 100644 code/test/build/basic.h create mode 100644 code/test/build/emon.h create mode 100644 code/test/build/light_dimmer.h create mode 100644 code/test/build/light_my92xx.h create mode 100644 code/test/build/nondefault.h create mode 100644 code/test/build/secure_client.h create mode 100644 code/test/build/sensor.h create mode 100755 code/test_build.sh create mode 100755 travis_script.sh diff --git a/.travis.yml b/.travis.yml index 07dd77da..e627821a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: python python: - '2.7' -sudo: false -conditions: v1 cache: directories: - "~/.npm" @@ -18,7 +16,7 @@ env: - ESPURNA_PIO_PATCH_ISSUE_1610=y - ESPURNA_PIO_SHARED_LIBRARIES=y script: -- cd code && ./build.sh -p && cd .. +- ./travis_script.sh stages: - name: Test - name: Release @@ -26,10 +24,9 @@ stages: jobs: include: - stage: Test - script: cd code && ./build.sh travis01 - - script: cd code && ./build.sh travis02 - - script: cd code && ./build.sh travis03 - - script: cd code && ./build.sh travis04 + env: BUILDER_ENV=travis-2_3_0 + - env: BUILDER_ENV=travis-latest + - env: BUILDER_ENV=travis-git BUILDER_EXTRA=secure_client - stage: Release env: BUILDER_THREAD=0 - env: BUILDER_THREAD=1 diff --git a/code/espurna/config/defaults.h b/code/espurna/config/defaults.h index 10dc9f92..acb4c8ff 100644 --- a/code/espurna/config/defaults.h +++ b/code/espurna/config/defaults.h @@ -552,6 +552,31 @@ #define LED8_RELAY 8 #endif +#ifndef LED1_PIN_INVERSE +#define LED1_PIN_INVERSE 0 +#endif +#ifndef LED2_PIN_INVERSE +#define LED2_PIN_INVERSE 0 +#endif +#ifndef LED3_PIN_INVERSE +#define LED3_PIN_INVERSE 0 +#endif +#ifndef LED4_PIN_INVERSE +#define LED4_PIN_INVERSE 0 +#endif +#ifndef LED5_PIN_INVERSE +#define LED5_PIN_INVERSE 0 +#endif +#ifndef LED6_PIN_INVERSE +#define LED6_PIN_INVERSE 0 +#endif +#ifndef LED7_PIN_INVERSE +#define LED7_PIN_INVERSE 0 +#endif +#ifndef LED8_PIN_INVERSE +#define LED8_PIN_INVERSE 0 +#endif + // ----------------------------------------------------------------------------- // Digital Inputs // ----------------------------------------------------------------------------- @@ -610,6 +635,34 @@ #define EVENTS8_PIN GPIO_NONE #endif +// ----------------------------------------------------------------------------- +// Lights +// ----------------------------------------------------------------------------- + +#ifndef LIGHT_CHANNELS +#define LIGHT_CHANNELS 0 +#endif + +#ifndef LIGHT_CH1_INVERSE +#define LIGHT_CH1_INVERSE 0 +#endif + +#ifndef LIGHT_CH2_INVERSE +#define LIGHT_CH2_INVERSE 0 +#endif + +#ifndef LIGHT_CH3_INVERSE +#define LIGHT_CH3_INVERSE 0 +#endif + +#ifndef LIGHT_CH4_INVERSE +#define LIGHT_CH4_INVERSE 0 +#endif + +#ifndef LIGHT_CH5_INVERSE +#define LIGHT_CH5_INVERSE 0 +#endif + // ----------------------------------------------------------------------------- // General // ----------------------------------------------------------------------------- diff --git a/code/espurna/config/dependencies.h b/code/espurna/config/dependencies.h index c9b205fc..9fe14770 100644 --- a/code/espurna/config/dependencies.h +++ b/code/espurna/config/dependencies.h @@ -91,3 +91,18 @@ #undef TELNET_SERVER_ASYNC_BUFFERED #define TELNET_SERVER_ASYNC_BUFFERED 1 // enable buffered telnet by default on latest Cores #endif + +#if LLMNR_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0) +#undef LLMNR_SUPPORT +#define LLMNR_SUPPORT 0 +#endif + +#if NETBIOS_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0) +#undef NETBIOS_SUPPORT +#define NETBIOS_SUPPORT 0 +#endif + +#if SSDP_SUPPORT && defined(ARDUINO_ESP8266_RELEASE_2_3_0) +#undef SSDP_SUPPORT +#define SSDP_SUPPORT 0 +#endif diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 1082ab62..9fcc8e20 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -4010,212 +4010,6 @@ // ----------------------------------------------------------------------------- -// ----------------------------------------------------------------------------- -// TEST boards (do not use!!) -// ----------------------------------------------------------------------------- - -#elif defined(TRAVIS01) - - // Info - #define MANUFACTURER "TravisCI" - #define DEVICE "Virtual board 01" - - // Some buttons - pin 0 - #define BUTTON1_PIN 0 - #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH - #define BUTTON1_RELAY 1 - - // Some relays - pin 1 - #define RELAY1_PIN 1 - #define RELAY1_TYPE RELAY_TYPE_NORMAL - - // Some LEDs - pin 2 - #define LED1_PIN 2 - #define LED1_PIN_INVERSE 1 - - // A bit of I2C - pins 3,4 - #define I2C_SDA_PIN 3 - #define I2C_SCL_PIN 4 - - // And, as they say in "From Dusk till Dawn": - // This is a sensor blow out! - // Alright, we got white sensor, black sensor, spanish sensor, yellow sensor. We got hot sensor, cold sensor. - // We got wet sensor. We got smelly sensor. We got hairy sensor, bloody sensor. We got snapping sensor. - // We got silk sensor, velvet sensor, naugahyde sensor. We even got horse sensor, dog sensor, chicken sensor. - // C'mon, you want sensor, come on in sensor lovers! - // If we don’t got it, you don't want it! - #define AM2320_SUPPORT 1 - #define BH1750_SUPPORT 1 - #define BMP180_SUPPORT 1 - #define BMX280_SUPPORT 1 - #define SHT3X_I2C_SUPPORT 1 - #define EMON_ADC121_SUPPORT 1 - #define EMON_ADS1X15_SUPPORT 1 - #define SHT3X_I2C_SUPPORT 1 - #define SI7021_SUPPORT 1 - #define PMSX003_SUPPORT 1 - #define SENSEAIR_SUPPORT 1 - #define VL53L1X_SUPPORT 1 - #define MAX6675_SUPPORT 1 - - // A bit of lights - pin 5 - #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT - #define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER - #define DUMMY_RELAY_COUNT 1 - #define LIGHT_CHANNELS 1 - #define LIGHT_CH1_PIN 5 - #define LIGHT_CH1_INVERSE 0 - #define ENCODER_SUPPORT 1 - - // A bit of HLW8012 - pins 6,7,8 - #ifndef HLW8012_SUPPORT - #define HLW8012_SUPPORT 1 - #endif - #define HLW8012_SEL_PIN 6 - #define HLW8012_CF1_PIN 7 - #define HLW8012_CF_PIN 8 - - // A bit of Dallas - pin 9 - #ifndef DALLAS_SUPPORT - #define DALLAS_SUPPORT 1 - #endif - #define DALLAS_PIN 9 - - // A bit of ECH1560 - pins 10,11, 12 - #ifndef ECH1560_SUPPORT - #define ECH1560_SUPPORT 1 - #endif - #define ECH1560_CLK_PIN 10 - #define ECH1560_MISO_PIN 11 - #define ECH1560_INVERTED 12 - - // MICS-2710 & MICS-5525 test - #define MICS2710_SUPPORT 1 - #define MICS5525_SUPPORT 1 - -// MAX6675 14 11 10 -#ifndef MAX6675_SUPPORT -#define MAX6675_SUPPORT 1 -#endif -#define MAX6675_CS_PIN 14 -#define MAX6675_SO_PIN 11 -#define MAX6675_SCK_PIN 10 - -#elif defined(TRAVIS02) - - // Relay provider dual - #define MANUFACTURER "TravisCI" - #define DEVICE "Virtual board 02" - - // Some buttons - pin 0 - #define BUTTON1_PIN 0 - #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH - #define BUTTON1_RELAY 1 - - // A bit of CSE7766 - pin 1 - #ifndef CSE7766_SUPPORT - #define CSE7766_SUPPORT 1 - #endif - #define CSE7766_PIN 1 - - // Relay type dual - pins 2,3 - #define RELAY_PROVIDER RELAY_PROVIDER_DUAL - #define RELAY1_PIN 2 - #define RELAY2_PIN 3 - #define RELAY1_TYPE RELAY_TYPE_NORMAL - #define RELAY2_TYPE RELAY_TYPE_NORMAL - - // IR - pin 4 - #define IR_SUPPORT 1 - #define IR_RX_PIN 4 - #define IR_BUTTON_SET 1 - - // A bit of DHT - pin 5 - #ifndef DHT_SUPPORT - #define DHT_SUPPORT 1 - #endif - #define DHT_PIN 5 - - // A bit of TMP3X (analog) - #define TMP3X_SUPPORT 1 - - // A bit of EVENTS - pin 10 - #define EVENTS_SUPPORT 1 - #define EVENTS1_PIN 6 - - // Sonar - #define SONAR_SUPPORT 1 - #define SONAR_TRIGGER 7 - #define SONAR_ECHO 8 - - // MHZ19 - #define MHZ19_SUPPORT 1 - #define MHZ19_RX_PIN 9 - #define MHZ19_TX_PIN 10 - - // PZEM004T - #define PZEM004T_SUPPORT 1 - #define PZEM004T_RX_PIN 11 - #define PZEM004T_TX_PIN 12 - - // V9261F - #define V9261F_SUPPORT 1 - #define V9261F_PIN 13 - - // GUVAS12SD - #define GUVAS12SD_SUPPORT 1 - #define GUVAS12SD_PIN 14 - - // Test non-default modules - #define MDNS_CLIENT_SUPPORT 1 - #define NOFUSS_SUPPORT 1 - #define UART_MQTT_SUPPORT 1 - #define INFLUXDB_SUPPORT 1 - #define IR_SUPPORT 1 - #define RF_SUPPORT 1 - #define OTA_MQTT_SUPPORT 1 - - #define RFB_DIRECT 1 - #define RFB_RX_PIN 4 - -#elif defined(TRAVIS03) - - // Relay provider light/my92XX - #define MANUFACTURER "TravisCI" - #define DEVICE "Virtual board 03" - - // Some buttons - pin 0 - #define BUTTON1_PIN 0 - #define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH - #define BUTTON1_RELAY 1 - - // MY9231 Light - pins 1,2 - #define RELAY_PROVIDER RELAY_PROVIDER_LIGHT - #define LIGHT_PROVIDER LIGHT_PROVIDER_MY92XX - #define DUMMY_RELAY_COUNT 1 - #define LIGHT_CHANNELS 5 - #define MY92XX_MODEL MY92XX_MODEL_MY9231 - #define MY92XX_CHIPS 2 - #define MY92XX_DI_PIN 1 - #define MY92XX_DCKI_PIN 2 - #define MY92XX_COMMAND MY92XX_COMMAND_DEFAULT - #define MY92XX_MAPPING 4, 3, 5, 0, 1 - - // A bit of analog, - // will not work on real life since they all share GPIO - // but it's OK to test build - #define EMON_ANALOG_SUPPORT 1 - #define NTC_SUPPORT 1 - #define LDR_SUPPORT 1 - - #define PULSEMETER_SUPPORT 1 - - // Test non-default modules - #define LLMNR_SUPPORT 1 - #define NETBIOS_SUPPORT 1 - #define SSDP_SUPPORT 1 - #define RF_SUPPORT 1 - #else #error "UNSUPPORTED HARDWARE!!" diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index d5796357..ee183616 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -1198,10 +1198,12 @@ EMON_ADS1X15_SUPPORT || \ EMON_ANALOG_SUPPORT || \ EVENTS_SUPPORT || \ + EZOPH_SUPPORT || \ GEIGER_SUPPORT || \ GUVAS12SD_SUPPORT || \ HLW8012_SUPPORT || \ LDR_SUPPORT || \ + MAX6675_SUPPORT || \ MICS2710_SUPPORT || \ MICS5525_SUPPORT || \ MHZ19_SUPPORT || \ @@ -1218,8 +1220,7 @@ V9261F_SUPPORT || \ VEML6075_SUPPORT || \ VL53L1X_SUPPORT || \ - MAX6675_SUPPORT || \ - EZOPH_SUPPORT \ + ADE7953_SUPPORT \ ) #endif @@ -1354,10 +1355,6 @@ #include "../sensors/MAX6675Sensor.h" #endif -#if MHZ19_SUPPORT - #include "../sensors/MHZ19Sensor.h" -#endif - #if MICS2710_SUPPORT #include "../sensors/MICS2710Sensor.h" #endif @@ -1366,6 +1363,10 @@ #include "../sensors/MICS5525Sensor.h" #endif +#if MHZ19_SUPPORT + #include "../sensors/MHZ19Sensor.h" +#endif + #if NTC_SUPPORT #include "../sensors/NTCSensor.h" #endif @@ -1390,14 +1391,14 @@ #include "../sensors/PZEM004TSensor.h" #endif -#if SI7021_SUPPORT - #include "../sensors/SI7021Sensor.h" -#endif - #if SHT3X_I2C_SUPPORT #include "../sensors/SHT3XI2CSensor.h" #endif +#if SI7021_SUPPORT + #include "../sensors/SI7021Sensor.h" +#endif + #if SONAR_SUPPORT #include "../sensors/SonarSensor.h" #endif diff --git a/code/espurna/mqtt.ino b/code/espurna/mqtt.ino index 3430b024..65863e00 100644 --- a/code/espurna/mqtt.ino +++ b/code/espurna/mqtt.ino @@ -160,7 +160,7 @@ void _mqttSetupAsyncClient(bool secure = false) { WiFiClient& _mqttGetClient(bool secure) { #if SECURE_CLIENT != SECURE_CLIENT_NONE - return (secure ? _mqtt_client_secure->get() : _mqtt_client) + return (secure ? _mqtt_client_secure->get() : _mqtt_client); #else return _mqtt_client; #endif diff --git a/code/platformio.ini b/code/platformio.ini index ff8828f5..8d8965f9 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -204,25 +204,20 @@ upload_flags = ${common.ota_upload_flags} # SPECIAL BUILDS - DO. NOT. USE. ever --- # ------------------------------------------------------------------------------ -[env:travis01] -platform = ${common.platform} -board = ${common.board_4m} -build_flags = ${common.build_flags_4m1m} -DTRAVIS01 - -[env:travis02] -platform = ${common.platform_latest} +[env:travis-2_3_0] +platform = ${common.arduino_core_2_3_0} board = ${common.board_4m} -build_flags = ${common.build_flags_4m1m} -DTRAVIS02 +build_flags = ${common.build_flags_4m1m} -[env:travis03] +[env:travis-latest] platform = ${common.platform_latest} board = ${common.board_4m} -build_flags = ${common.build_flags_4m1m} -DTRAVIS03 -DNOWSAUTH -DASYNC_TCP_SSL_ENABLED=1 +build_flags = ${common.build_flags_4m1m} -[env:travis04] +[env:travis-git] platform = ${common.arduino_core_git} board = ${common.board_4m} -build_flags = ${common.build_flags_4m1m} -DTRAVIS03 -DNOWSAUTH +build_flags = ${common.build_flags_4m1m} # ------------------------------------------------------------------------------ # DEVELOPMENT BOARDS diff --git a/code/test/.gitignore b/code/test/.gitignore new file mode 100644 index 00000000..c8be6ce1 --- /dev/null +++ b/code/test/.gitignore @@ -0,0 +1 @@ +pio_cache diff --git a/code/test/build/basic.h b/code/test/build/basic.h new file mode 100644 index 00000000..7f36b951 --- /dev/null +++ b/code/test/build/basic.h @@ -0,0 +1,5 @@ +#define LED1_PIN 0 +#define RELAY1_PIN 0 +#define BUTTON1_PIN 0 +#define BUTTON1_MODE BUTTON_PUSHBUTTON +#define BUTTON1_RELAY 1 diff --git a/code/test/build/emon.h b/code/test/build/emon.h new file mode 100644 index 00000000..4d865368 --- /dev/null +++ b/code/test/build/emon.h @@ -0,0 +1,10 @@ +#define EMON_ADC121_SUPPORT 1 +#define EMON_ADS1X15_SUPPORT 1 +#define CSE7766_SUPPORT 1 +#define PZEM004T_SUPPORT 1 +#define HLW8012_SUPPORT 1 +#define ECH1560_SUPPORT 1 +#define PULSEMETER_SUPPORT 1 +#define V9261F_SUPPORT 1 +#define ADE7953_SUPPORT 1 +#define EMON_ANALOG_SUPPORT 1 diff --git a/code/test/build/light_dimmer.h b/code/test/build/light_dimmer.h new file mode 100644 index 00000000..9fd4f058 --- /dev/null +++ b/code/test/build/light_dimmer.h @@ -0,0 +1,10 @@ +#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT +#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER +#define DUMMY_RELAY_COUNT 1 +#define LIGHT_CHANNELS 5 +#define LIGHT_CH1_PIN 5 +#define LIGHT_CH2_PIN 4 +#define LIGHT_CH3_PIN 12 +#define LIGHT_CH4_PIN 13 +#define LIGHT_CH5_PIN 14 +#define IR_SUPPORT 1 diff --git a/code/test/build/light_my92xx.h b/code/test/build/light_my92xx.h new file mode 100644 index 00000000..b13962aa --- /dev/null +++ b/code/test/build/light_my92xx.h @@ -0,0 +1,11 @@ +#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT +#define LIGHT_PROVIDER LIGHT_PROVIDER_MY92XX +#define DUMMY_RELAY_COUNT 1 +#define LIGHT_CHANNELS 5 +#define MY92XX_MODEL MY92XX_MODEL_MY9231 +#define MY92XX_CHIPS 2 +#define MY92XX_DI_PIN 1 +#define MY92XX_DCKI_PIN 2 +#define MY92XX_COMMAND MY92XX_COMMAND_DEFAULT +#define MY92XX_MAPPING 4,3,5,0,1 +#define IR_SUPPORT 1 diff --git a/code/test/build/nondefault.h b/code/test/build/nondefault.h new file mode 100644 index 00000000..d27a7bce --- /dev/null +++ b/code/test/build/nondefault.h @@ -0,0 +1,10 @@ +#define LLMNR_SUPPORT 1 +#define NETBIOS_SUPPORT 1 +#define SSDP_SUPPORT 1 +#define RF_SUPPORT 1 +#define RFB_DIRECT 1 +#define MDNS_CLIENT_SUPPORT 1 +#define NOFUSS_SUPPORT 1 +#define UART_MQTT_SUPPORT 1 +#define INFLUXDB_SUPPORT 1 +#define OTA_MQTT_SUPPORT 1 diff --git a/code/test/build/secure_client.h b/code/test/build/secure_client.h new file mode 100644 index 00000000..56879073 --- /dev/null +++ b/code/test/build/secure_client.h @@ -0,0 +1,2 @@ +#define SECURE_CLIENT SECURE_CLIENT_BEARSSL +#define MQTT_LIBRARY MQTT_LIBRARY_ARDUINOMQTT diff --git a/code/test/build/sensor.h b/code/test/build/sensor.h new file mode 100644 index 00000000..9ce95967 --- /dev/null +++ b/code/test/build/sensor.h @@ -0,0 +1,23 @@ +#define AM2320_SUPPORT 1 +#define BH1750_SUPPORT 1 +#define BMP180_SUPPORT 1 +#define BMX280_SUPPORT 1 +#define SHT3X_I2C_SUPPORT 1 +#define SHT3X_I2C_SUPPORT 1 +#define SI7021_SUPPORT 1 +#define PMSX003_SUPPORT 1 +#define SENSEAIR_SUPPORT 1 +#define VL53L1X_SUPPORT 1 +#define DALLAS_SUPPORT 1 +#define MICS2710_SUPPORT 1 +#define MICS5525_SUPPORT 1 +#define MAX6675_SUPPORT 1 +#define DHT_SUPPORT 1 +#define TMP3X_SUPPORT 1 +#define EVENTS_SUPPORT 1 +#define DIGITAL_SUPPORT 1 +#define SONAR_SUPPORT 1 +#define MHZ19_SUPPORT 1 +#define NTC_SUPPORT 1 +#define LDR_SUPPORT 1 +#define GUVAS12SD_SUPPORT 1 diff --git a/code/test_build.sh b/code/test_build.sh new file mode 100755 index 00000000..7fef5b8b --- /dev/null +++ b/code/test_build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +set -eu -o pipefail + +CUSTOM_HEADER="espurna/config/custom.h" +TARGET_ENVIRONMENT=${1:?"pio env name"} +shift 1 + +CONFIGURATIONS=( + basic + sensor + emon + light_my92xx + light_dimmer + nondefault +) + +if [ $# > 0 ] ; then + CONFIGURATIONS=("${CONFIGURATIONS[@]}" "$@") +fi + +trap 'rm -f ${CUSTOM_HEADER}' EXIT + +for cfg in "${CONFIGURATIONS[@]}" ; do + echo "travis_fold:start:build_${cfg}" + echo "- building ${cfg}" + + printf "#define MANUFACTURER \"%s\"\n" "TEST_BUILD" \ + | tee ${CUSTOM_HEADER} + printf "#define DEVICE \"%s\"\n" "${cfg^^}" \ + | tee --append ${CUSTOM_HEADER} + tee --append ${CUSTOM_HEADER} < "test/build/${cfg}.h" + + export PLATFORMIO_SRC_BUILD_FLAGS="-DUSE_CUSTOM_H" + export PLATFORMIO_BUILD_CACHE_DIR="test/pio_cache" + + time pio run -s -e "$TARGET_ENVIRONMENT" + echo "travis_fold:end:build_${cfg}" +done diff --git a/travis_script.sh b/travis_script.sh new file mode 100755 index 00000000..4621fcc0 --- /dev/null +++ b/travis_script.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e -v + +cd code + +if [ ${TRAVIS_BUILD_STAGE_NAME} = "Test" ]; then + ./test_build.sh $BUILDER_ENV $BUILDER_EXTRA +else + ./build.sh -p +fi