File: release.conf

package info (click to toggle)
ffc 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 50,704 kB
  • sloc: cpp: 572,515; python: 15,790; makefile: 134; sh: 67
file content (34 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
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
# Configuration file for fenics-release

PACKAGE="ffc"
LP_PACKAGE="ffc"
FILES="ChangeLog ffc/__init__.py ffc/constants.py setup.py"

pre-release()
{
    # Update version number
    echo "Update version number in constants.py"
    $EDITOR ffc/constants.py

    # Run tests
    echo "Running regression tests"
    export PYTHONPATH=`pwd`:$PYTHONPATH
    cd test/regression
    python test.py --generate-only
    less error.log
    echo "Only version numbers should differ, press return to continue"
    read
    cd references
    ./update.sh
    cd ../../../

    # Commit and push
    bzr commit -m "Updated references for new version number"
    bzr push lp:ffc
}

post-release()
{
    # Same as pre-release
    pre-release
}