mirror of
https://github.com/Binary-Coalescence/motorDSM.git
synced 2025-08-05 06:05:40 -05:00
Upgraded ci-scripts to v3.0.1
This commit is contained in:
27
.ci-local/travis/post-prepare.py
Executable file
27
.ci-local/travis/post-prepare.py
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import shutil
|
||||
# ugly hack: copy cue.py so that it can be imported
|
||||
shutil.copy('.ci/cue.py', '.ci-local/travis')
|
||||
from cue import *
|
||||
|
||||
# Add the path to the driver module to the RELEASE.local file, since it is needed by the example IOC
|
||||
update_release_local('MOTOR_ACS', os.getenv('TRAVIS_BUILD_DIR'))
|
||||
|
||||
# Copy the travis RELEASE.local to the configure dir
|
||||
shutil.copy("{}/RELEASE.local".format(cachedir), "configure/RELEASE.local")
|
||||
|
||||
# Sanity check
|
||||
print("{}Contents of updated configure/RELEASE.local{}".format(ANSI_BLUE, ANSI_RESET))
|
||||
os.system('cat configure/RELEASE.local')
|
||||
print("{}End of updated configure/RELEASE.local{}".format(ANSI_BLUE, ANSI_RESET))
|
||||
|
||||
# Enable the building of example IOCs
|
||||
print("{}Contents of updated configure/CONFIG_SITE.local{}".format(ANSI_BLUE, ANSI_RESET))
|
||||
os.system('echo "BUILD_IOCS = YES" > configure/CONFIG_SITE.local')
|
||||
os.system('cat configure/CONFIG_SITE.local')
|
||||
print("{}End of updated configure/CONFIG_SITE.local{}".format(ANSI_BLUE, ANSI_RESET))
|
||||
|
||||
# Remove cue.py
|
||||
os.system('rm -f .ci-local/travis/cue.py')
|
@@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Set VV in .travis.yml to make scripts verbose
|
||||
[ "$VV" ] && set -x
|
||||
|
||||
CACHEDIR=${CACHEDIR:-${HOME}/.cache}
|
||||
|
||||
# source functions
|
||||
. ./.ci/travis/utils.sh
|
||||
|
||||
# The module to be built isn't in the cache directory with the dependencies
|
||||
pwd
|
||||
|
||||
# Add the path to the driver module to the RELEASE.local file, since it is needed by the example IOC
|
||||
update_release_local MOTOR_ACS $TRAVIS_BUILD_DIR
|
||||
|
||||
# Copy the travis RELEASE.local to the configure dir
|
||||
cp -f ${CACHEDIR}/RELEASE.local configure/RELEASE.local
|
||||
|
||||
# Sanity check
|
||||
echo -e "${ANSI_BLUE}Contents of updated configure/RELEASE.local${ANSI_RESET}"
|
||||
cat configure/RELEASE.local
|
||||
echo -e "${ANSI_BLUE}End of updated configure/RELEASE.local${ANSI_RESET}"
|
||||
|
||||
# Enable the building of example IOCs
|
||||
echo -e "${ANSI_BLUE}Creating configure/CONFIG_SITE.local${ANSI_RESET}"
|
||||
echo -e "BUILD_IOCS = YES" > configure/CONFIG_SITE.local
|
||||
cat configure/CONFIG_SITE.local
|
||||
echo -e "${ANSI_BLUE}End of configure/CONFIG_SITE.local${ANSI_RESET}"
|
Reference in New Issue
Block a user