box: wercker/golang
# Add services here
# Build definition
build:
  # The steps that will be executed on build
  steps:
    # Sets the go workspace and places you package
    # at the right place in the workspace tree
    - setup-go-workspace

    # Gets the dependencies
    - script:
        name: go get
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get github.com/robfig/revel/revel

    # Build the project
    - script:
        name: revel build
        code: |
          revel build $WERCKER_SOURCE_DIR $WERCKER_SOURCE_DIR/build/acvte

    # Test the project
    - script:
        name: revel test
        code: |
          revel test $WERCKER_SOURCE_DIR

box: wercker/golang
# Add services here
# Build definition
build:
  # The steps that will be executed on build
  steps:
    # Sets the go workspace and places you package
    # at the right place in the workspace tree
    - setup-go-workspace
    - script:
        name: Export package path
        code: |
          export PACKAGE_PATH="$WERCKER_GIT_DOMAIN/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY"

    # Gets the dependencies
    - script:
        name: go get
        code: |
          cd $WERCKER_SOURCE_DIR
          go version
          go get github.com/robfig/revel/revel

    # Build the project
    - script:
        name: revel build
        code: |
          revel build $PACKAGE_PATH $WERCKER_SOURCE_DIR/build/acvte

    # Test the project
    - script:
        name: revel test
        code: |
          revel test $PACKAGE_PATH

Switch to package path usage instead of abs path
Switch to package path usage instead of abs path