Skip to content

Commit

Permalink
toolchain: Initial experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallbraker committed May 26, 2018
1 parent b61c50b commit 0404ebb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/volt_lang/Builder.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.volt_lang

import org.volt_lang.RepoConf
import org.volt_lang.NodeConf
import org.volt_lang.ToolchainConf


class Builder implements Serializable
Expand Down Expand Up @@ -81,6 +82,11 @@ class Builder implements Serializable
dsl.echo makeStr()
}

def setupToolchain(Map config)
{
def conf = new ToolchainConf(config);
}

def addToolchainLib(folder)
{
for (repo in repoConfs) {
Expand Down
16 changes: 16 additions & 0 deletions src/org/volt_lang/ToolchainConf.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.volt_lang


class ToolchainConf implements Serializable
{
def wattTag
def voltaTag
def batteryTag

ToolchainConf(Map config)
{
this.wattTag = "${config.watt}"
this.voltaTag = "${config.volta}"
this.batteryTag = "${config.battery}"
}
}
11 changes: 11 additions & 0 deletions vars/voltToolchain.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

import org.volt_lang.Builder;

def call(Map config) {

def b = new Builder(steps, scm)

stage('Setup') {
b.setupToolchain(config)
}
}

0 comments on commit 0404ebb

Please sign in to comment.